100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CS6515 - EXAM 1 ALGORITHMS QUESTIONS AND COMPLETE SOLUTIONS

Rating
-
Sold
-
Pages
19
Grade
A
Uploaded on
28-11-2024
Written in
2024/2025

CS6515 - EXAM 1 ALGORITHMS QUESTIONS AND COMPLETE SOLUTIONS

Institution
CS6515
Course
CS6515










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS6515
Course
CS6515

Document information

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

Subjects

Content preview

Name: Score:


17 Multiple choice questions

Definition 1 of 17
w = (1, 2PI / n) = e^(2PI*i/n)

Loga (u / V)

Logb(b)

Loga (u)^n

Omega(w)

Definition 2 of 17
loga (u) + loga (v)

loga (u)^n

loga (uv)

logb(b^x)

omega(w)

Definition 3 of 17
Given r = common ratio and a = first term in series
=> a + ar + ar^2 + ar^3 + ... + ar^(n-1)


=> a * [(1 - r^n) / (1-r)]

DC: Geometric Series

Fft And Inverse Fft Formulas


Dc: Solving Recurrences - Master Theorem

Dc: Arithmetic Series

,Definition 4 of 17
FFT = Mn(w) x B
Inverse FFT = 1/n Mn(w^-1) x B

Euler's Formula

Omega(w)


FFT and Inverse FFT Formulas

Steps to Solve for Fft

Definition 5 of 17
e^ix = cosx + isinx

Steps To Solve For Fft

Surface Area


Euler's Formula

Dc: Arithmetic Series

Definition 6 of 17
1. Define the Input and Output.


2. Define entries in table, i.e. T(i) or T(i, j) is...


3. Define a Recurrence relationship - Based on a subproblem to the main problem. (hint: use a
prefix of the original input 1 < i < n).


4. Define the Pseudocode.


5. Define the Runtime of the algorithm. Use Time Function notation here => T(n) = T(n/2) + 1...

Steps to solve a Dynamic Programming Problem


loga (u)^n

Omega(w)

Steps to solve for FFT

, Definition 7 of 17
Input = x1, x2, ..., xn
1) Subproblem = x1, x2, ..., xi ; O(n)
2) Subproblem = xi, xi+1, ..., xj ; O(n^2)


Input = x1, x2, ..., xn; y1, y2, ..., ym
1) Subproblem = x1, x2, ..., xi; y1, y2, ..., yj ; O(mn)


Input = Rooted Binary Tree
1) Subproblem = Smaller rooted binary tree inside the Input.

DC: Geometric Series

FFT and Inverse FFT Formulas


DC Algorithms and Runtimes (6)

DP: Types of Subproblems (4)

Definition 8 of 17
loga (u) - loga (v)

logb(b)


loga (u / v)

omega(w)

loga (u)^n

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.
STUDYFIELD West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
79
Member since
1 year
Number of followers
14
Documents
2886
Last sold
1 week ago

4.3

15 reviews

5
10
4
3
3
0
2
1
1
1

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

Frequently asked questions