16
Barack Obama – Computer Science Question
Posted under News by admin
Barack Obama gets asked the mechanism scholarship subject by Google CEO Eric Schmidt.
The photo and the text can be changed by modifying the about.php file.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Barack Obama gets asked the mechanism scholarship subject by Google CEO Eric Schmidt.
Research “chemtrails” here on YouTube. Check my vids I film it all the time. Wake up and wake others!
Why are you even arguing? It was supposed to be a funny video. You guys are ruining it
@mruvia Not necessarily, 100 is the same as 0100 so any integer can be compared.
you would have been wrong as well
@sashetoa Programming in Python 3 by Mark Summerfield
America’s opinions need to be shared!! Do you believe in 0bama’s new health care policy?? Stop by my utube profile to discover just why your points of view means something !!
The funny thing is, he knows a possible answer but like all politicians he don’t know the right one.
LOL he can’t answer it how terrible!
please someone recommend me a base book about computer science.
@irockyou1337 No it would be O(K*N) where k is the length of the key and N is number of elements you have. Furthermore this sort works only on items with same key length.
@forexnoob yea defenitely quick sort is way better then Bubble sort.
@ChristopherDone obviously not hes the fucking president and hes black maybe he did know….
I would have answered: quicksort
@kormoc Nevermind, that would be O(n). Derp.
@kormoc How about radix sort? That would be O(1)
You must look at all the numbers, but I guess it could be done with a special xmm instruction that sorts its 32bit ints in a single clock cycle (hence O(1)) if the chip producers would consider it worthwile.
Your calculations for big O cost is incorrect for sorting 3 items in O(1). Please write a generic algorithm that will take any three numbers and sort them correctly in one operation without scanning all three of them.
Have another look at the problem. Obama is asked to sort a constant number of items (1,000,000). So if you want to call this constant “n”, then “n” is in this case 1,000,000. Hence bubblesort will run in O(1,000,000^2 / 2) which is in O(1), if you interpret the math correctly. Or look at it this way: can you not sort 3 items in O(1)? Why not 5 items then? What is the biggest constant number of items you can sort in O(1)?
@ChristopherDone Exactly.
They obviously set him up with it before hand.
You don’t understand Big-O notation, do you? No biggie, but you should read up on it
Bubble sort is still most definitely O(n^2)
What. The. Fuck?
n….is a constant?!
To be extremely pedantic, any sorting algorithm for this problem would run in O(1), since n is a constant (1,000,000). And I love to pedantic ^ ^
depends on whether or not the data can be assumed to be mostly sorted, and whether or not the data is IO bound.
“bubblesort is the wrong way to go” is a more correct answer than “quicksort”
wow, pergunta pro lula agora HUASHUADHUASD
Add A Comment