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)

DATA STRUCTURES FINAL EXAM QUESTIONS AND ANSWERS (GRADED A)

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
28-07-2025
Written in
2024/2025

DATA STRUCTURES FINAL EXAM QUESTIONS AND ANSWERS (GRADED A)

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Content preview

DATA STRUCTURES FINAL EXAM
QUESTIONS AND ANSWERS



Big Oh Notation - Correct Answers -- Least upper bound measure of the time
complexity of an algorithm

Algorithm Analysis - Correct Answers -- Analyze code to see if its speed and/or memory
consumption is optimal for a given problem

O(1) - Correct Answers -- Big oh of one
- Constant time

O(logn) - Correct Answers -- Logarithmic Time
- As the problem doubles, it only takes one more unit of time

O(n) - Correct Answers -- Linear time
- As the problem doubles so does the amount of work

O(nlogn) - Correct Answers -- Linear log

O(n^2) - Correct Answers -- Quadratic

Linear Search - Correct Answers -- O(n)
- Typically in terms of worst case
- For unsorted array

Binary Search - Correct Answers -- O(logn)
- Divide and conquer algorithm instead of reading the problem by 1 on each iteration,
we'll reduce it by a fractional amount
- For sorted array

Functional notation - Correct Answers -- A more precise measure of the number of
steps/operations that a given algorithm requires to do complete

Big O from functional notation - Correct Answers -- Keep only the fastest growing term
- Drop coefficient

Recursion - Correct Answers -- A method that calls itself
- Base case: recursion to stop

, - Self-call (maybe indirect)
- Production rule: causes us to approach base case

Tail Recursion - Correct Answers -- The only self-calls are on the last statement of the
function

Non-tail Recursion - Correct Answers -- Call(s) are embedded in the function body

Indirect Recursion - Correct Answers -A() -> B() -> A()

Excessive Recursion - Correct Answers -- Redundant recursion calls

Arrays - Correct Answers -- Continuous chunk of memory
- Random access
---Element 5 is just as accessible as element 20

Linked Base - Correct Answers -- Pointer/Reference
- One or more that link to another data point/node

Named Nodes - Correct Answers -- Nodes that have a pointer(s) assigned to it that are
held in the list object

Linear Data Structures - Correct Answers -- Straight, effectively single dimension
structure
- Commonly implemented with an array

Stack - Correct Answers -- Linear
- Two basic operations
- Push: add data onto the top of the stack
- Pop: remove data from the top of the stack
--- O(1)

Pop() Operation - Correct Answers -1) Return value from the top of the stack
2) Shift the top over
3) Clean memory

Queues - Correct Answers -- Linear data structure
- FIFO (First In First Out) or LILO (Last In Last Out)
- Enqueue: add data onto the last data
- Dequeue: remove data in the front

Linked Based Queue structure - Correct Answers -- Singly Linked
- Two named nodes

Array Based Queue structure - Correct Answers -- Pushing F(Front) and E(End)
towards next array

Written for

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Document information

Uploaded on
July 28, 2025
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.49
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

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.
millyphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
2921
Member since
4 year
Number of followers
1958
Documents
44307
Last sold
5 hours ago
white orchid store

EXCELLENCY IN ACCADEMIC MATERIALS ie exams, study guides, testbanks ,case, case study etc

3.6

551 reviews

5
239
4
87
3
104
2
32
1
89

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