100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CS 6515 Exam 1 QUESTIONS WITH SOLUTION

Puntuación
-
Vendido
-
Páginas
8
Grado
A
Subido en
25-05-2025
Escrito 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.

Mostrar más Leer menos
Institución
CS 6515
Grado
CS 6515

Vista previa del contenido

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

Escuela, estudio y materia

Institución
CS 6515
Grado
CS 6515

Información del documento

Subido en
25 de mayo de 2025
Número de páginas
8
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Lectsavvy Chamberlain College Of Nursing
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
92
Miembro desde
2 año
Número de seguidores
39
Documentos
3668
Última venta
6 horas hace
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 reseñas

5
10
4
0
3
4
2
1
1
1

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes