complexity (PDF)




File information


This PDF 1.4 document has been generated by Writer / OpenOffice.org 3.4.1, and has been sent on pdf-archive.com on 26/06/2015 at 04:05, from IP address 98.183.x.x. The current document download page has been viewed 344 times.
File size: 63.84 KB (2 pages).
Privacy: public file










File preview


Vector Operation
PopBack(), Clear()
Front(), Back()
Empty(), Size(), Capacity()
bracket operator []
PushBack(t)
SetSize(n), SetCapacity(n)
assignment operator =
Constructors, Destructor
Display(os,ofc)
Dump(os)

Runtime Complexity
Actual
Θ(1)

Requirement
O(1)

Amortized Θ(1)
O(n)
Θ(n), n = Capacity()
Θ(n), n = Capacity()

Amortized O(1)
O(n)
O(n), n = Capacity()
O(n), n = Capacity()

Θ(n), n = Size()
Θ(n), n = Capacity()

* Note that Θ(1) and O(1) are equivalent
List Operation
PushFront(), PushBack()
Insert(), PopFront()
PopBack(), Remove()
Front(), Back()
Empty()
Default Constructor
Size(), Clear(), Remove()
assignment operator =
Copy Constructor,
Assignment operator,
Destructor
Display(os,ofc)
Dump(os)
* Note that Θ(1) and O(1) are equivalent

Runtime Complexity
Actual
O(1)

Requirement
O(1)

Θ(n), n = Size()
Θ(n), n = Size()
Θ(n), n = Size()

O(n), n = Size()
O(n), n = Size()
O(n), n = Size()

Θ(n), n = Size()
Θ(n), n = Size()

Deque Operation
PopFront(), PopBack(), Clear()
Front(), Back()
Empty(), Size()
bracket operator []
PushFront(t), PushBack(t)
assignment operator =
Constructors, Destructor
Display(os,ofc)
Dump(os)
* Note that Θ(1) and O(1) are equivalent

Runtime Complexity
Actual
Θ(1)

Requirement
O(1)

Amortized Θ(1)
Θ(n), n = Size()
Θ(n), n = Size()

Amortized O(1)
O(n), n = Size()
O(n), n = Size()

Θ(n), n = Size()
Θ(n), n = Size()






Download complexity



complexity.pdf (PDF, 63.84 KB)


Download PDF







Share this file on social networks



     





Link to this page



Permanent link

Use the permanent link to the download page to share your document on Facebook, Twitter, LinkedIn, or directly with a contact by e-Mail, Messenger, Whatsapp, Line..




Short link

Use the short link to share your document on Twitter or by text message (SMS)




HTML Code

Copy the following HTML code to share your document on a Website or Blog




QR Code to this page


QR Code link to PDF file complexity.pdf






This file has been shared publicly by a user of PDF Archive.
Document ID: 0000283945.
Report illicit content