I have been asked to explaine about Big O notation and to calculate Big o Notation for an algorithm. I'm done with the  defining part but I'm still wondering how I can calculate it. Can someone help me to calculate the Big O for the below given code?  new = int (input("enter number" )) if new &lt;= 10000:     comm=new*2/100     print (comm) else :     comm= new*5/100     print (comm)
Most people with a degree in CS will certainly know what . It helps us to measure how well an algorithm scales.   But I'm curious, how do you calculate or approximate the complexity of your algorithms?
Windows 7 finding location of installed program What else do I need to produce two dots above o? iPhone: Detecting user inactivity/idle time since last screen touch Prove that the only automorphism of $\mathbb{Q}(\sqrt[3]{2})$ is the identity automorphism. I am having difficulty with this proof. I have previously proved that for an automorphism on the extension field $K$ of $F$ that when restricted to $F$ is the identity automorphism must take roots of $f(x)\in F[x]$ in $E$ to roots of $f(x)$ in $E$. I was thinking of using the minimal polynomial $x^{3}-2\in\mathbb{Q}[x]$ and the result of previous problem I solved, but I suspect there are automorphisms that don't fix the subfield, so the result can't be used or I need to prove that any automorphism of an extension field must fix the subfield that is being extended or always sends roots in $E$ to roots in $E$.  I am not asking for a solution to this, but maybe a hint or pointer in the right direction. This problem is introduced in the text prior to Galois theory, so please keep that in consideration. MySQL sort after argument in IN() 401k withdrawal abroad and state taxation? From what I know about 401k's, when it's time to retire, we take our 401k money and pay federal and state tax. Some states don't have taxes on 401k's — Florida is a good example. So many people move to Florida for a retirement, not to pay taxes (that's why people call it heaven's waiting room). The question is - how does it work if a US citizen permanently moves to another country for a retirement (retaining citizenship, but not living in any of the US states)? Are there any state taxes? If yes, then why? There are 8 crew members, The leading member wants that only a crew of 5 people or more could open a safe he bought, To each member he gave equal amount of keys, and locked the safe with several locks.  What's the minimal number of locks he should put:   at least 5 crew members would be required to open the safe? Any team of 5 crew members could open the safe, but none of the 4 team crew members.   1,2 stands individually of course. series of young adult science fiction books from early 1980s about last of a race of martial experts that sees the destruction of his home planet For example,   If this van's a-rockin', don't come a-knockin'  (song title)   (song title)   I have a few related questions:   What is the "a-" or "-a" called? Is there a function beyond a rhythmic one? Why is "a-" attached to a word at all -- and why attach to a word at all? How to print fields in node.tpl.php? I need to print individual fields from the $content variable in node.tpl.php file in separate div tags. How do I do that and how do I find out what the field's names are? I have a query going that gets data for an ID for the last 3 months.  I need to tweak it so I get the highest value for each of the three months.  I've tried a couple of things with the aggregate function MAX, but I'm not getting anywhere.  I'm trying to get the max value for each of the past months ....  Here's the data from the query, currently sorted by date (asc):   ID      Date               Value 12410   01/03/2017 12:17    0.000178 12410   01/10/2017 11:36    0.000186 12410   01/17/2017 11:27    0.000189 12410   01/24/2017 13:09    0.000182 12410   01/31/2017 10:37    0.000169 12410   02/07/2017 11:03    0.000214 12410   02/14/2017 11:52    0.000176 12410   02/21/2017 10:51    0.000200 12410   02/28/2017 12:29    0.000194 12410   03/07/2017 08:39    0.000206   Here's the query:   select AnalysisID as "ID" , AnalysisDateTime as "Date", AnalysisValue as "Value" from AnalysisValueTbl where AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -3, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-3, getdate())) or AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -2, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-2, getdate())) or AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -1, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-1, getdate())) order by AnalysisValue desc What does NOEXEC flag mean when mounting directories on RHEL? I am trying to understand the NOEXEC flag when mounting.  I am having an execution issue within the /tmp directory on someone elses machine that I cannot access atm where the /tmp directory is mounted onto a different drive than '/' and NOEXEC is present.  I wanted to try and recreate this scenario on my machine, but I do not have a second hard drive.  I tried doing the following command:  mount --bind /test1 /test2   I then removed the bind flag and added NOEXEC in /etc/fstab.  Then, I created a file in /test2 called test.sh where it just echos 'hello world'.  I try and run it and it said 'permission denied'.  I then ran chmod 777 test.sh and was able to execute the file just fine.  I thought that the NOEXEC flag should not allow me to execute anything?  Is mount --bind /test1 /test2 not the same as mounting from a completely different physical drive? As in /test1 and /test2 are on different drives? Change equation font in Pages During a Pages update which was pushed out a few months ago, Pages obtained the ability to write equations using LaTeX or MathML commands. According to an Apple Support article, the size and color of the equation can be changed ():  The equation appears at the insertion point in your document (or before the selected text). The equation is an inline object, the same size and color as the surrounding text. If you change the size or color of the surrounding text, the size and color of the equation’s font also change.  This does not mention anything about the font used for the equation itself, which seems to be something similar to a Times New Roman font. Is there any way to change the font used, preferably to something like Latin Modern Math? I was considering the possibility of replacing the font file Pages uses with a downloaded Latin Modern Math font file, but I'm not sure what to replace. Could I replace Times New Roman in /System/Library/Fonts/ or something like that? Review Count - Fix It or Lose It Another meta question identified a bug that was marked as designed. To summarize the bug, the little number that appears next the Review link in the header shows an incorrect value most of the time.         I would like to propose that the feature be dropped. Honestly, I would prefer it be fixed, but the response to the question above gives me little faith that it will be. Half of the time, I click that little brown box and find out that I was lied to. There's nothing to review.  The little number no longer does the job it was created to do.        Oh sweet! Three things I can review!        Just kidding... Labeling all sides of the matrix with kbordermatrix I have a matrix with labels on the left and top. Now I want to have a label on all sides of the matrix. How can I change my code?  \documentclass[10 pt, a4paper, leqno, oneside] {report} \usepackage{kbordermatrix} \begin{document}  \renewcommand{\kbldelim}{(}% Left delimiter \renewcommand{\kbrdelim}{)}% Right delimiter \[   \tilde{\textbf{m}} = \kbordermatrix{     \mbox{} &amp; c_1 &amp; c_2 &amp; c_3 &amp; c_4 &amp; c_5 \\     % &amp; c_1 &amp; c_2 &amp; c_3 &amp; c_4 &amp; c_5 \\     r_1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 \\     r_2 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 \\     r_3 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 \\     r_4 &amp; 0 &amp; 0 &amp; 0 &amp; 1 &amp; 1 \\     r_5 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 1    } \]  \end{document} How to make a multiboot USB key? I want to cut my 8 GB USB key into several partitions to use  for a Windows XP (maybe d before).   I also want to put the  remix pack into it such that it has the second bootable OS. I want to tweak and modify it a little because if I can I want to switch Ubuntu 9.04 to the  version.  How to do it easily?  IMP: in short I want to make a dual-boot USB key with Windows XP SP3 and Ubuntu 8.04.3 LTS. error when adding user to wheel group in CentOS 7 I am trying to grant sudo privileges to a user of a CentOS 7 devbox by typing gpasswd -a user wheel, but the attempt is failing.  What am I doing wrong?    Here is what I typed:    I discovered that the user is not in the wheel group as follows:    [user@localhost git]$ sudo yum install git [sudo] password for user:  Sorry, try again. [sudo] password for user:  Sorry, try again. [sudo] password for user:  user is not in the sudoers file.  This incident will be reported.   I then logged in as root and typed the following to add the user to the wheel group:    [user@localhost git]$ su - Password:  Last login: Thu Aug 20 17:11:31 PDT 2015 on pts/0 [root@localhost ~]# gpasswd -a user wheel Adding user user to group wheel [root@localhost ~]# exit logout   I finally tried to use the sudo command again but it failed as follows:    [user@localhost git]$ sudo yum install git [sudo] password for user:  user is not in the sudoers file.  This incident will be reported. [user@localhost git]$ How to exclude some files from filename expansion mechanism in bash? How to compare two Pearson correlation coefficients Since a few days I do not get ahead when trying to compare two Pearson correlation coefficients. Imagine that I've got two datasets where on each I do a correlation between Land Surface Temperature and an urban metric. The datasets are different in their length, so the first one has round about 160.000 observables and the second one has about 2400 observables. For the correlation on the first dataset I get a Pearson of -0.74 and for the second I get -0.885. Now I want to find out whether these coefficients are significantly different from each other. Is there any appropriate method you could suggest?  I already played around with the Fisher-Z-Transformation, but from my point of view with no purposeful results. When I calculate the Fisher-Z on my coefficients, it results in 20.95 (Fisher-Z).  I would be very happy about suitable advices. The list view of Nautilus 3.6 shows the dates files were modified in a variety of ways: the hour and minute if modified on the current day, and the month and day if modified during the current year, and the year tacked on if modified during a previous year. I would like to see the entire date and time consistently on all the files (e.g.: Sat 20 Apr 2012 01:28:34 PM EDT).  I had this set up before, but I can't figure out how to do so with version 3.6. I did find this question, but the answers no longer apply to Nautilus 3.6:   How can I do so in Nautilus 3.6+?