• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

Coen 12 Midterm 1

Document preview thumbnail
Preview 1 out of 2 pages

Exam of 2 pages for the course COEN 12 at COEN 12 (COEN 12 MIDTERM 1)

Content preview

COEN 12 MIDTERM 1
Save




ADT56-56answer--Encapsulate56Data56and56Operations56on56Data,56static

ADTs56so56far?56-56answer--Set56&56Bag

Big56O56-56answer--analyzes56the56complexity56of56the56code

Big56O56rules56-56answer--
Take56the56highest56growing56factor56and56drop56everything56else.

sequential56search56algorithm56-56answer--
loop56through56the56whole56set56and56search56for56element

sequential56search56big56o56-56answer--O(n)

Binary56Search56Algorithm56-56answer--
takes56mid56point56and56compares56and56then56cuts56search56in56half56from56the56and56
so56on56until56found56or56lo56>=56hi

binary56search56big56O56-56answer--O(log56n)

binary56search56requirements56-56answer--sorted56set

Hashing56concept56-56answer--Key56to56address56mapping

Hash56table56-56answer--Where56we56put56elements56while56assigning56hash

Perfect56hash56function56-56answer--
A56theoretical56hash56function56that56maps56keys56uniformly56and56randomly56into56a56h
ash56table56without56any56collisions.

Direct56hash56-56answer--
Elements56have56predetermined56keys56and56fit56perfectly56(perfect)

Document information

Uploaded on
April 25, 2025
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$19.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
favouredone
4.4
(352)
Sold
404
Followers
36
Items
10372
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions