The Quicksort Algorithm
Quicksort is the fastest known comparison-based sorting algorithm (on average, and for a large number of elements), requiring O(n log(n)) steps. By convention, n is the number of elements to be compared and big O is a function of those elements. Quicksort is a recursive algorithm which first partitions an array according to several rules:
Pick an element, called a pivot, from the array.
Reorder the array so that all elements with values less than the pivot come before the pivot, while all elements with values greater than the pivot come after it (equal values can go either way). After this partitioning, the pivot is in its final position. This is called the partition operation.
Recursively apply the above steps to the sub-array of elements with smaller values and separately to the sub-array of elements with greater values.
Quicksort was invented by Tony Hoare and has undergone extensive analysis and scrutiny, and is known to be about twice as fast as the next fastest sorting algorithm. In the worst case, however, quicksort is a slow n² algorithm (and for quicksort, “worst case” corresponds to already sorted). (Click this link for an example of the Quicksort Algorithm written in C)
Credit: Wolfram Alpha/Wikipedia
Dynamic Network Visualization - Wars on Earth over time (1816-2001)
This dynamic network visualization shows a dynamic picture of the global war conflicts between 1816 and 2001. The network relationships indicate which country was in conflict with another country. In the first part of the video the network data was overlayed over a geographic world map to show global reach. The second part shows the pure network layout in 3D. The dynamic network analysis and animations were generated with the software Commetrix (www.commetrix.de) by M.Schulz and R.Hillmann of IKMResearch at TU Berlin.
Earth and Moon from Saturn
via reddit
Rurouni Kenshin Week
Day 7 | Free Day
↳ What a Wonderful World…
This version is required listening. The verses don’t go in the same order, but mmmmmmm, super atmospheric.
A round of high-fives for the RK fandom for a fantastic week of weeping feelings! We survived did it!! (ノ◕ヮ◕)ノ*:・゚✧
This map shows where 25 iconic movies were filmed in New York City
Görseli zaten paylaşmıştık ama Atmel de her gün ürünümüzü paylaşmıyor :) #atmel #tinylab #arduino #indiegogo by robotistan @ http://ift.tt/1Pea7r2
The Paradoxical Commandments were written in 1968 by Dr. Kent M. Keith. Mother Theresa reffered to them often. People are illogical, unreasonable, and self-centered. Love them anyway. If you do good, people will accuse you of selfish ulterior motives. Do good anyway. If you are successful, you will win false friends and true enemies. Succeed anyway. The good you do today will be forgotten tomorrow. Do good anyway. Honesty and frankness make you vulnerable. Be honest and frank anyway. The biggest men and women with the biggest ideas can be shot down by the smallest men and women with the smallest minds. Think big anyway. People favor underdogs but follow only top dogs. Fight for a few underdogs anyway. What you spend years building may be destroyed overnight. Build anyway. People really need help but may attack you if you do help them. Help people anyway. Give the world the best you have and you’ll get kicked in the teeth. Give the world the best you have anyway. © Copyright Kent M. Keith 1968, renewed 2001
Machine Learning, Big Data, Code, R, Python, Arduino, Electronics, robotics, Zen, Native spirituality and few other matters.
107 posts