How do you do this?

No, you can't have a sip of my Java.

How do you do this?

Postby 101dalmatians » Sun Dec 02, 2012 4:16 pm

2010 A Invitational:

Given an array of N distinct elements in random order, what is the Big O of the traditional implementation of the quicksort
algorithm?

A. O(NlogN) B. O(N2) C. O(N2logN) D. O(N3/2) E. O(N3)
I guess this signature really doesn't matter now that I know that the forum is going down soon...
User avatar
101dalmatians
Ubiquitous Spammer
 
Posts: 1013
Joined: Mon Aug 27, 2012 6:30 pm
Location: Dallas, Tx.

Re: How do you do this?

Postby le cool cat » Thu Dec 06, 2012 12:51 am

This is a memorization problem. it's O(nLogn). http://en.wikipedia.org/wiki/quicksort
2012 State Champion in Computer Science (4A)
2013 State Qualifier in Science (4A, results pending)
A:318 (96/120/102)
B: 298 (76/120/102)
D1: 328 (88/120/120)
R: 270 (90/112/68)
S: 360
le cool cat
Typical User
 
Posts: 45
Joined: Wed Apr 04, 2012 9:07 pm


Return to UIL Computer Science

Who is online

Users browsing this forum: No registered users and 1 guest

cron