CISC 121 Lecture Notes - Sequential Access, 2Cc, Merge Sort

36 views1 pages
wunch and 39345 others unlocked
CISC 121 Full Course Notes
35
CISC 121 Full Course Notes
Verified Note
35 documents

Document Summary

Merge sort t(n)= c if n<= 2 t(n) = c+c*n+2t(n/2) Ia: assume t(n) <= c*nlogn for some specific value of n. Show t(2n) <= c*(2n)log(2n) c(1+2n) + 2t(n) <= c*(2n)log(2n) Using class structure to define our own data structure. Only allow sequential access (have to go through previous terms to get to further along ones) Add new nodes at the end at the beginning in the middle delete nodes anywhere variations: Queue: can only add at the end can only delete from the beginning. Stack: can only add at the end can only delete from the end circular list: Last node linked to the first double linked list: list links go both ways (1 to 2, and 2 to 1, etc)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents