Professional Documents
Culture Documents
Acitivity 7 - Zaragoza
Acitivity 7 - Zaragoza
Carmona Campus
Market Road, Carmona, Cavite
🕾 (046) 487-6328/carmonacampus@cvsu.edu.ph
www.cvsu.edu.ph
Date of Submission: May 24, 2024 (3B) / May 26, 2024 (3A)
Direction: Read and answer the following questions. All answers must be written here in this
activity sheet. Failure to comply will result in activity score deductions.
1. Create a table displaying the eight basic asymptotic efficiency classes. Give at least two
examples where each class is applied.
Answers:
Efficiency Name Examples
Classes
O(1) Constant Accessing an array index.
The push and pop process of a stack.
The enqueue and dequeue process of a queue.
References:
Asymptotic notation: Asymptotic notation cheatsheet | Codecademy. (n.d.). Retrieved from
https://www.codecademy.com/learn/cspath-asymptotic-notation/modules/cspath-
asymptotic-notation/cheatsheet
Olawanle, J. (2023, April 10). Big o cheat sheet – Time Complexity chart. Retrieved from
https://www.freecodecamp.org/news/big-o-cheat-sheet-time-complexity-chart/
Singh, V. (2024, January 17). Asymptotic Analysis: Unraveling the complexity of algorithms -
asymptotic-analysis/
Studocu. (n.d.-b). Asymptotic Notations and Basic Efficiency Classes - To compare and rank
algorithms/asymptotic-notations-and-basic-efficiency-classes/54115833
https://en.wikipedia.org/wiki/Algorithmic_efficiency
https://en.wikipedia.org/wiki/Big_O_notation#Orders_of_common_functions