CSC263H1 Lecture Notes - Lecture 13: Linked List, Upper And Lower Bounds

41 views1 pages
27 Oct 2015
School
Course
Professor

Document Summary

De ne worst-case sequence complexity of sequence of m operations as the maximum runtime over all sequences of m operations. Wcsc m worst-case time of 1 operation. Worst case for one operation is (k) where k is the size of the list. Also max size after k ops k. worst-case runtime of op i c(i 1). m(cid:88) c(i 1) = o (cid:18) c(m)(m 1) (cid:19) . , ins(m) m(cid:88) i=1 d(i 1) = d(m 1)m. 0. 1 aggregate approach k bits in counter, increment. 2 ith every time every other time every other2 time every otheri time (cid:98)m/2i(cid:99) Total bits ipped k 1(cid:88) m (cid:98)m/2(cid:99) (cid:98)m/4(cid:99) Ammortized sc = 2m/m = 2. i=0 (cid:106) m. 2i (cid:107) (cid:98)log2 m(cid:99)(cid:88) i=0 (cid:106) m.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions