|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ListSortAndSearchTest
Class ListSortAndSearchTest does timing tests on the sorting and searching methods defined in the ListSortAndSearch class. According to our theoretical analysis, bubble sorting should take O(N2) time, linear search O(N) time, and binary search O(log N).
Constructor Summary | |
ListSortAndSearchTest()
|
Method Summary | |
static void |
main(java.lang.String[] args)
Allocate a ListSortAndSearch class object and call its methods on a list of 9000 elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListSortAndSearchTest()
Method Detail |
public static void main(java.lang.String[] args)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |