crap. Hit the wrong button! Again, to be pedantic: streaming endl to cout is not quite the same as printf("\n"); It's closer to: printf("\n"); fflush(stdout);
If you are always dealing with purely random data, then true: you must bound a quick sort by O(n^2). Which is why "generic" sort functions in C, et. al., typically utilize the introspection sort. But how often is your data truly random? Knowing the best and average case of an algorithm is very useful if you know your data will not cause the worse case (or cause it for some acceptable limit of the data).
The C++ Standard does not dictate what algorithm the STL is required to use (though is does define bounds). Also, it defines more that one sorting function (i.e., stable and non-stable). Most professional libraries that do not require a stable sorting algorithm usually utilize the introspection sort.
O is not worse case. O is an upper bound. You can talk about best and average Big-O (and we usually talk average), not just worse case. Quick sort is usually listed as being bounded in time with its average case of O(n*log n), not its worse case of O(n^2). Also, remember that Big-O (and other type of bounds) can be used to bound other resources, like memory, not just time.
That's not necessarily true. Sorting algorithms can and usually are categorized by whether they are in-place or not (along with their complexity and stability).
Yes, the calcium hypochlorite solution is a 12% solution (household bleach is 6%). This solution is used to "super chlorine" the water, converting the chlorimines (created when the chlorine kills the stuff in the water) back into free chlorine. It is these chlorimines that cause your eyes to burn and gives the water that "chlorine" smell.
I believe what you are saying, but if you can stop "sexually provocative" mail then why couldn't members of congress stop Mr. Flint from sending them complimentary copies of "Huster"? Maybe it was because of his right to seek redress from congress? Interesting idea, though, I'll have to try it.
I'm surprised at all the problems people have been having with their credit card companies. When I've had frauduent charges on my VISA, my bank cancelled the card but took a list from me of currently outstanding, valid charges to allow to go through. They've done this twice.
What I think you guys are confused about is what they put into pools. The chlorine of choice nowadays is calcium hypochlorite
No, I'm not. I've owned a pool for years. The most commonly used form of chlorine is Trichloro-S-Triazinetrione (or Trichloroisocyanuric acid or simply, trichlor). Calcium hypochlorite breaks down very quickly in sun light (uv light) and requires the use of a stablizer (usually cyanuric acid). Trichlor already contains a stablizer, making it much more economical to use.
No magic. Simple chemistry. Balanced water is neutral. Acidic or caustic water, or water without enough dissolved solids in it will chemically react with metals, oxidizing them. That is what rust is. Balanced water simple is not reactive to metals. I've owned a pool for years, I know what I am talking about. Except for here on Slashdot, where people seem to think they know about everything. It is when fresh water is added from your well or by the rain (which is VERY acidic) that problems happen if you do not adjust for them. This is why the water must be tested every day. It people who slack off that have rust problems. Nuclear power plants are not going to spend the time and effect to balance their water, it would affect its ability to transfer heat. Power plant will use pure water, which is very corrosive.
Right, that is because seawater is NOT balanced. Properly balanced (measured in PH, alkalinity, and calcium hardness), chlorinated pool water does not cause corrosion no matter how hot it is or how much chlorine you have in it. With unbalanced pool water (at ANY temerature), your ladders, nuts, and bolts will rust very quickly and you will see a lot of yellow stains on your liner (which, by the way, you use powdered vitimin C to remove). As a matter of fact, during spring start up, you "super-chlorinate" swimming pools, by adding several times the normal amount in the water. This turns the chlorimines (used chlorine) back into free chlorine. Free chlorine is what keeps the water clean. It is also these chlorimines that are what makes your eyes burn. Usually when people think there is too much chlorine in the water because their eyes burn and they smell a lot of chlorine, it is actually that they do not have enough, and need to super-chlorinate the water.
Actually the stablized, chlorine tablets used in swimming pools (Trichloro-S-Triazinetrione) is acidic. And chloine dissolved in water creates a weak acid called chlorous acid. It is this acid that sanitizes the water. But I thought chlorine itself was basic.
crap. Hit the wrong button! Again, to be pedantic: streaming endl to cout is not quite the same as printf("\n"); It's closer to: printf("\n"); fflush(stdout);
Well, if you are trying to be pedantic,
cout &grt "Hello World" cout
Yes, you are a geek, but as I try to teach my kid, it's a great time to be a geek. I, for one, revel in my geekness.
Sure, but it was on mainframes years before. Ah, Scott Adams. Loved those.
All other text-based games used 2-word commands
You must not have played very many.
Well, Seeing how Orwell was writing about contemporary Europe in 1948, I'd say you're not lucky. You are just wrong.
If you are always dealing with purely random data, then true: you must bound a quick sort by O(n^2). Which is why "generic" sort functions in C, et. al., typically utilize the introspection sort. But how often is your data truly random? Knowing the best and average case of an algorithm is very useful if you know your data will not cause the worse case (or cause it for some acceptable limit of the data).
The C++ Standard does not dictate what algorithm the STL is required to use (though is does define bounds). Also, it defines more that one sorting function (i.e., stable and non-stable). Most professional libraries that do not require a stable sorting algorithm usually utilize the introspection sort.
O is not worse case. O is an upper bound. You can talk about best and average Big-O (and we usually talk average), not just worse case. Quick sort is usually listed as being bounded in time with its average case of O(n*log n), not its worse case of O(n^2). Also, remember that Big-O (and other type of bounds) can be used to bound other resources, like memory, not just time.
That's not necessarily true. Sorting algorithms can and usually are categorized by whether they are in-place or not (along with their complexity and stability).
Best slam ever.
The exact same break in all three of them?
Freedom of religion should not be extended to religions that are clearly made up.
Um, wouldn't that be all religions?
Does anyone second this choice? I, too, have domains registered with GoDaddy that I guess I should move.
I think I'd rather keep my income and pay taxes, then make only $7k/yr.
There was a sequel to the original movie?
Yes, the calcium hypochlorite solution is a 12% solution (household bleach is 6%). This solution is used to "super chlorine" the water, converting the chlorimines (created when the chlorine kills the stuff in the water) back into free chlorine. It is these chlorimines that cause your eyes to burn and gives the water that "chlorine" smell.
The site says the links is up for sale. Guess the owners have opted out themselves!
Please, please, please, tell me you are kidding. I'm so glad I shred everything!
I believe what you are saying, but if you can stop "sexually provocative" mail then why couldn't members of congress stop Mr. Flint from sending them complimentary copies of "Huster"? Maybe it was because of his right to seek redress from congress? Interesting idea, though, I'll have to try it.
I'm surprised at all the problems people have been having with their credit card companies. When I've had frauduent charges on my VISA, my bank cancelled the card but took a list from me of currently outstanding, valid charges to allow to go through. They've done this twice.
What I think you guys are confused about is what they put into pools. The chlorine of choice nowadays is calcium hypochlorite
No, I'm not. I've owned a pool for years. The most commonly used form of chlorine is Trichloro-S-Triazinetrione (or Trichloroisocyanuric acid or simply, trichlor). Calcium hypochlorite breaks down very quickly in sun light (uv light) and requires the use of a stablizer (usually cyanuric acid). Trichlor already contains a stablizer, making it much more economical to use.
No magic. Simple chemistry. Balanced water is neutral. Acidic or caustic water, or water without enough dissolved solids in it will chemically react with metals, oxidizing them. That is what rust is. Balanced water simple is not reactive to metals. I've owned a pool for years, I know what I am talking about. Except for here on Slashdot, where people seem to think they know about everything. It is when fresh water is added from your well or by the rain (which is VERY acidic) that problems happen if you do not adjust for them. This is why the water must be tested every day. It people who slack off that have rust problems. Nuclear power plants are not going to spend the time and effect to balance their water, it would affect its ability to transfer heat. Power plant will use pure water, which is very corrosive.
Right, that is because seawater is NOT balanced. Properly balanced (measured in PH, alkalinity, and calcium hardness), chlorinated pool water does not cause corrosion no matter how hot it is or how much chlorine you have in it. With unbalanced pool water (at ANY temerature), your ladders, nuts, and bolts will rust very quickly and you will see a lot of yellow stains on your liner (which, by the way, you use powdered vitimin C to remove). As a matter of fact, during spring start up, you "super-chlorinate" swimming pools, by adding several times the normal amount in the water. This turns the chlorimines (used chlorine) back into free chlorine. Free chlorine is what keeps the water clean. It is also these chlorimines that are what makes your eyes burn. Usually when people think there is too much chlorine in the water because their eyes burn and they smell a lot of chlorine, it is actually that they do not have enough, and need to super-chlorinate the water.
Actually the stablized, chlorine tablets used in swimming pools (Trichloro-S-Triazinetrione) is acidic. And chloine dissolved in water creates a weak acid called chlorous acid. It is this acid that sanitizes the water. But I thought chlorine itself was basic.