100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS 6515 Exam 1 QUESTIONS WITH SOLUTION

Beoordeling
-
Verkocht
-
Pagina's
8
Cijfer
A
Geüpload op
25-05-2025
Geschreven in
2024/2025

Binary Search Runtime - O(log n) Merge Sort Runtime - O(n log n) Naive Multiplication of n-bit Integers Runtime - O(n²) Fast Multiplication of n-bit Integers (Using Divide and Conquer) Runtime - O(n^log₂3) ≈ O(n¹.⁵⁹) Median Finding Algorithm Runtime - O(n) FFT (Fast Fourier Transform) Runtime - O(n log n) Gauss's Method for Multiplying Complex Numbers (Number of Multiplications) - 3 multiplications Euclid's GCD Algorithm Runtime - O(log(min(a, b))) Strassen's Algorithm for Matrix Multiplication Runtime - O(n^log₂7) ≈ O(n².⁸ⁱ) Recurrence for Naive Multiplication of n-bit Integers - T(n) = 4T(n/2) + O(n) Recurrence for Fast Multiplication (Divide and Conquer) - T(n) = 3T(n/2) + O(n) Gauss's Formula for Multiplying Two Complex Numbers - (a+bi)×(c+di)=(ac−bd)+(ad+bc)i Recurrence for Merge Sort - 2T(n/2) + O(n) Master Theorem Formula - T(n) = aT(n/b) + O(n^d) a = number of recursive calls b = size of partitions in recursive calls d = degree of work done at each recursive step Matrix Multiplication via Strassen's Algorithm (Formula for Recursive Steps) - T(n)= 7T(n/2) + O(n^2) QuickSelect Algorithm Description - Choose a pivot p. Partition A into elements less than p, equal to p, and greater than p. Recursively search one of the partitions based on the value of k and the size of the partitions. Definition of a Good Pivot - A pivot p is good if it lies between the n/4-th smallest and the 3n/4-th smallest element, meaning the partition sizes are at most 3n/4. Recurrence for Algorithm with an Approximate Median - T(n)=T(0.75n)+O(n), which solves to O(n). Recursive Algorithm to Find a Good Pivot (Main Idea) - Break A into n/5 groups of 5 elements.

Meer zien Lees minder
Instelling
CS 6515
Vak
CS 6515

Voorbeeld van de inhoud

CS 6515 Exam


CS 6515 Exam 1 QUESTIONS WITH
SOLUTION
Binary Search Runtime - O(log n)


Merge Sort Runtime - O(n log n)


Naive Multiplication of n-bit Integers Runtime - O(n²)


Fast Multiplication of n-bit Integers (Using Divide and Conquer) Runtime - O(n^log₂3) ≈
O(n¹.⁵⁹)


Median Finding Algorithm Runtime - O(n)


FFT (Fast Fourier Transform) Runtime - O(n log n)


Gauss's Method for Multiplying Complex Numbers (Number of Multiplications) - 3
multiplications


Euclid's GCD Algorithm Runtime - O(log(min(a, b)))


Strassen's Algorithm for Matrix Multiplication Runtime - O(n^log₂7) ≈ O(n².⁸ⁱ)


Recurrence for Naive Multiplication of n-bit Integers - T(n) = 4T(n/2) + O(n)


Recurrence for Fast Multiplication (Divide and Conquer) - T(n) = 3T(n/2) + O(n)

CS 6515 Exam

, CS 6515 Exam




Gauss's Formula for Multiplying Two Complex Numbers -
(a+bi)×(c+di)=(ac−bd)+(ad+bc)i


Recurrence for Merge Sort - 2T(n/2) + O(n)


Master Theorem Formula - T(n) = aT(n/b) + O(n^d)
a = number of recursive calls
b = size of partitions in recursive calls
d = degree of work done at each recursive step


Matrix Multiplication via Strassen's Algorithm (Formula for Recursive Steps) - T(n)=
7T(n/2) + O(n^2)


QuickSelect Algorithm Description - Choose a pivot p.
Partition A into elements less than p, equal to p, and greater than p.
Recursively search one of the partitions based on the value of k and the size of the
partitions.


Definition of a Good Pivot - A pivot p is good if it lies between the n/4-th smallest and
the 3n/4-th smallest element, meaning the partition sizes are at most 3n/4.


Recurrence for Algorithm with an Approximate Median - T(n)=T(0.75n)+O(n), which
solves to O(n).


Recursive Algorithm to Find a Good Pivot (Main Idea) - Break A into n/5 groups of 5
elements.


CS 6515 Exam

Geschreven voor

Instelling
CS 6515
Vak
CS 6515

Documentinformatie

Geüpload op
25 mei 2025
Aantal pagina's
8
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€15,77
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Lectsavvy Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
93
Lid sinds
2 jaar
Aantal volgers
39
Documenten
3667
Laatst verkocht
16 uur geleden
Lectsavvy

Unlock academic success with me! I'm Lectsavvy, your go-to expert for top-notch study materials, notes, and exam prep on Stuvia. Browse my uploads for: Accurate and concise notes Exam-focused study guides Past papers and solutions High-quality summaries Let's ace those exams together! Follow me for updates, and feel free to reach out with any questions or requests.

4,1

16 beoordelingen

5
10
4
0
3
4
2
1
1
1

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen