Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCI 340 – Final Exam Study Guide

Rating
-
Sold
-
Pages
40
Grade
A+
Uploaded on
06-09-2025
Written in
2025/2026

CSCI 340 final exam, covering algorithms, data structures, and STL concepts. Topics include hashing (load factor, collisions, probing, rehashing), tree structures (binary trees, AVL trees, Red-Black trees, BTrees, heaps), sorting algorithms (bubble, insertion, selection, merge, quick, heap) with their complexities, and complexity analysis (Big O, Big Theta, Big Omega, space and time complexity). It also reviews STL containers (vector, list, deque, map, set, stack, queue, priority_queue), iterators, and algorithm functions. Additional sections cover recursion, Git/GitHub commands, pointers, templates, and abstract data types (ADTs)

Show more Read less
Institution
CSCI 340
Course
CSCI 340

Content preview

What is the load factor of a hashing table?


Give this one a try later!


The ratio of the number of elements in the hash table compared to the total
hash table size.

Note how the ideal case is a load factor of 1 (since 1 means a full table). A
load factor of more than 0.7 (ie. 70 percent) should signal for rehashing.

,What is the written order of a postorder traversal?


Give this one a try later!


-> left
-> right
-> node


Note! How in all of the orders left node always goes before right. The only
thing that changes is when we visit the parent.




What structure require the root to be the minimum value and requires that all levels
be filled completely.


Give this one a try later!


Heap




Does the implementation of a list need to be known in order to work with it?


Give this one a try later!


No.




What type of collision handling uses linked lists for elements that hash to the same
value?


Give this one a try later!

, Separate chaining

Note how this is problematic since time complexity depends on how much
data is being traversed in each list.




True/False


Keys in a BTree can be in no particular order.


Give this one a try later!


False

Keys in a Btree are sorted in ascending order for each node




Which of the following is(or are) the least efficient?


- insertion sort
- selection sort
- quick sort
- heap sort
- merge sort
- bubble sort


Give this one a try later!


- insertion sort
- selection sort
- quick sort
- bubble sort

, What is the written order of an inorder traversal?


Give this one a try later!


-> left
-> node
-> right




What is the best case time complexity of a hashing table?


Give this one a try later!


O( 1 )

This is constant time, therefore the most efficient.




How would you declare an empty set of doubles?


Give this one a try later!


set<double> myset;




True/False


All external nodes in a Red-Black tree do not necessarily have to be equal black
depth.


Give this one a try later!

Written for

Institution
CSCI 340
Course
CSCI 340

Document information

Uploaded on
September 6, 2025
Number of pages
40
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.50
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
BestKey chamberlain university
Follow You need to be logged in order to follow users or courses
Sold
271
Member since
3 year
Number of followers
108
Documents
7504
Last sold
3 days ago

This Page Provides Excellent Exam Solutions and Study Guides that Guarantee Top Grades

3.9

77 reviews

5
39
4
13
3
11
2
7
1
7

Recently viewed by you

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