I want to calculate the complexity of an algorithm for which i need to mention each line of algorithm cost and frequency as a separate cell for each row of algorithm. I intend to write it in the fashion as shown at the end. I am using the algorithmic package, using it inside the tabular is giving many errors. I hope there is some way to do it.  ___________________________ |1| x=0         | c | 1   | |2| y=0         | c | 1   | |3| for z=0 to n| c | n+1 | ---------------------------   not the duplicate of the question marked, as it says to write the algo in a column while i want each row to carry an each line of algorithm, that's why I have also added the same question in my comments for ease of understanding.
Let us consider the following code and the algorithm corresponding to it    \documentclass{article}   \usepackage[utf8]{inputenc}    \usepackage[]{algorithm2e}     \begin{document}     \begin{center}    \begin{algorithm}[H]     \KwData{this text}     \KwResult{how to write algorithm with \LaTeX2e }     initialization\;     \While{not at end of this document}{      read current\;      \eIf{understand}{              go to next section\;       current section becomes this one\;       }{       go back to the beginning of current section\;      }     }     \caption{How to write algorithms}    \end{algorithm}    \end{center}    \end{document}   Which gives the following     I want to add running times for each step to my algorithm as shown below (for example)    So, I need to make my algorithm as a column in the table and one more column for running times of each step, how can I make my algorithm as a column inside a table?
How can I stop Lollipop ignoring my wifi network? Android 5.0 has a new "feature": If a wifi network has no connection to the internet, it will remain connected to it but route traffic over mobile data instead. A small exclamation mark shows in the status bar over the wifi symbol.  Unfortunately, for some reason Android has decided that my home wifi does not have a good internet connection - which is not true, as I'm using it to access Stackexchange at the moment - and is, instead, trying to send everything over GPRS.  With mobile data disabled, things work over wifi just fine, despite the exclamation mark - so it isn't a problem with the wifi not working, per se.  Is there any way to override this "smart" feature? The only way I have found to make things work at the moment is to disable mobile data while I am in my house - which is not a practical long-term solution.   EDITING to add that I have now solved this problem by buying a new router! I was using something very old... But, I'll leave the question here for the benefit of anybody else with the same difficulty. How do I round a number in JavaScript? While working on a project, I came across a JS-script created by a former employee that basically creates a report in the form of  Name : Value Name2 : Value2   etc.  The peoblem is that the values can sometimes be floats (with different precision), integers, or even in the form 2.20011E+17. What I want to output are pure integers. I don't know a lot of JavaScript, though.  How would I go about writing a method that takes these sometimes-floats and makes them integers? 8.00GB RAM (3.22GB usable) in Windows 7 x64 I have set up Windows 7 Ultimate 64-bit on my PC. I have 8GB RAM and my BIOS states the correct amount (8192MB), but Windows (System Manager) says I have 8.00GB (3.22GB usable). give me a solution. I'm tried this: Run &gt; MSCONFIG, open the Boot tab &gt; click Advanced Options &gt; make sure that Maximum Memory but this wasn't helpful. My Motherboard Details: CPU Type : DualCore Intel Pentium, 3000 MHz (15 x 200) Motherboard Name : Foxconn G41MXE Motherboard Chipset : Intel Eaglelake G41 System Memory : 3296 MB (DDR3-1333 DDR3 SDRAM) DIMM1: Kingston : 4 GB DDR3-1333 DDR3 DIMM3: Kingston : 4 GB DDR3-1333 DDR3 My BIOS Details: BIOS Type : AMI (03/21/11) Vendor : American Megatrends Inc. Version : 080015 Capabilities : Flash BIOS, Shadow BIOS, Selectable Boot, EDD, BBS System Properties :  Bios File :  What about Bios Update? sudo -k vs. sudo -K I know what the man page has to say about the -K and -k :     ‑K       The ‑K (sure kill) option is like ‑k except that it removes the user's   cached credentials entirely and may not be used in conjunction with a   command or other option. This option does not require a password. Not   all security policies support credential caching.      ‑k[command]       When used alone, the ‑k (kill) option to sudo invalidates the user's   cached credentials. The next time sudo is run a password will be   required. This option does not require a password and was added to   allow a user to revoke sudo permissions from a .logout file. Not all   security policies support credential caching. When used in conjunction   with a command or an option that may require a password, the ‑k option   will cause sudo to ignore the user's cached credentials. As a result,   sudo will prompt for a password (if one is required by the security   policy) and will not update the user's cached credentials.   So if there is no need to use a command in conjunction with these options, am i correct in assuming K is always the better option to use rather that k? Two rotating discs with same angular momentum when brought in contact completely stop. Why is the angular momentum not conserved in this case? Two discs mounted on different thin, lightweight rods oriented through their centres are made to rotate about their axes seperately such that the angular momentum of the two about their respective axes is same in both magnitude and direction. When both are brought in contact, they stop due to force of friction. Why is the angular momentum not conserved about their axes in this case?(Was positive before contact, but zero after the process completes, no external force present either) How to prove polynomials with degree $n$ does not form a vector space? This is one of my linear algebra problems:     Prove that polynomials of degree $n$ does not (The professor made these words bold intentionally) form a vector space.   From what I read, the set of polynomials of degree $n$ should be a vector space, because:   There is an "One" and a "Zero" in this set; We can find inverse for addition and multiplication from this set; It follows all the axioms of addition. It follows all the axioms of scalar multiplication.   Then can someone give me some hints to prove it does not form a vector space? I try to delete Action.005 permanently.    But I don't know how. If I click on the X    then it is still in the list.    I already researched without success, I even managed to loose all my animations by attempting to apply a fix, so I want to be cautious now... How can I do this? jQuery autocomplete tagging plug-in like StackOverflow's input tags? What solutions accomplish the same auto-completion that SO uses for entering tags?  There are plugins that can handle one word but I haven't seen any that handle multiple words. Check if a class is derived from a generic class I have a generic class in my project with derived classes.  public class GenericClass&lt;T&gt; : GenericInterface&lt;T&gt; { }  public class Test : GenericClass&lt;SomeType&gt; { }   Is there any way to find out if a Type object is derived from GenericClass?  t.IsSubclassOf(typeof(GenericClass&lt;&gt;))   does not work. Setting or modifying a (system wide) environment variable in cmd.exe I am looking for a convenient way to add and/or modify and/or delete an environment variable from the command line. Particularly, I find myself at times in situations when I have to add a few variables in cmd.exe.  I'd be grateful if someone showed me a non-GUI way to modify (that is: to add a new directory to) the %PATH% variable.  The change should be be permanent, not just for duration of the cmd session. Why is time special? In Special Relativity, the spacetime interval between two events is $s^2 = -(c{\Delta}t)^2+({\Delta}x)^2+({\Delta}y)^2+({\Delta}z)^2$ giving the Minkowski metric $\eta_{\mu\nu}=\text{diag}(-1, 1, 1, 1)$. What is the justification for making time have a negative coefficient, and how closely is that related to the 2nd law of thermodynamics? Sure, by letting $\eta = \text{diag}(1, 1, 1, 1)$, we get a pretty boring spacetime, and the boosts in the Poincaré group become trig instead of hyperbolic functions, but what's the physical reasoning behind this? Copy over ssh and execute commands in one session How to delete column/field in PyQGIS? Supposing to have something like this:  #include &lt;map&gt; int main(){     std::map&lt;int,int&gt; m;     m[1] = 2;     m[2] = 4;     return 0; }   I would like to be able to inspect the contents of the map running the program from gdb. If I try using the subscript operator I get:    (gdb) p m[1] Attempt to take address of value not located in memory.   Using the find method does not yield better results:  (gdb) p m.find(1) Cannot evaluate function -- may be inlined   Is there a way to accomplish this? Where can I send feature requests? SVG donut slice as path element (annular sector) Shouldn't the association bonus acquired via serial upvoting be reversed? When a user's rep gets bloated because of serial upvoting, and as result the user is given the association bonus, shouldn't that association bonus also be reversed in case of serial upvoting reversal? "named" vs "that is named" HTTP GET request in JavaScript? How does one actually show from associativity that one can drop parentheses?