Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

CS 6515 Exam 1 QUESTIONS WITH SOLUTION

Note
-
Vendu
-
Pages
8
Grade
A
Publié le
25-05-2025
Écrit en
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.

Montrer plus Lire moins
Établissement
CS 6515
Cours
CS 6515

Aperçu du contenu

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

École, étude et sujet

Établissement
CS 6515
Cours
CS 6515

Infos sur le Document

Publié le
25 mai 2025
Nombre de pages
8
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

€15,55
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien


Document également disponible en groupe

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Lectsavvy Chamberlain College Of Nursing
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
93
Membre depuis
2 année
Nombre de followers
39
Documents
3667
Dernière vente
1 semaine de cela
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 revues

5
10
4
0
3
4
2
1
1
1

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions