Skip to main content
Open navigation menu
Close suggestions
Search
Search
en
Change Language, English
Upload
Sign in
Sign in
0 ratings
0% found this document useful (0 votes)
8 views
1 page
Algorithm Time and Space Complexities
Uploaded by
Rahul dev shaha
AI-enhanced title
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download
Save
Save Algorithm Complexities For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
8 views
1 page
Algorithm Time and Space Complexities
Uploaded by
Rahul dev shaha
AI-enhanced title
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Go to previous items
Download
Save
Save Algorithm Complexities For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
Go to next items
Download
Save Algorithm Complexities For Later
Share
More options
Fullscreen
Algorithm Time and Space Complexities
Algorithm Space Complexity Time Complexity (Best / Worst)
Bubble Sort O(1) O(n^2) / O(n^2)
Selection Sort O(1) O(n^2) / O(n^2)
Insertion Sort O(1) O(n) / O(n^2)
Merge Sort O(n) O(n log n) / O(n log n)
Quick Sort O(log n) O(n log n) / O(n^2)
Heap Sort O(1) O(n log n) / O(n log n)
Counting Sort O(k) O(n + k) / O(n + k)
Radix Sort O(n + k) O(nk) / O(nk)
Bucket Sort O(n + k) O(n + k) / O(n^2)
Shell Sort O(1) O(n log n) / O(n^2)
Tim Sort O(n) O(n log n) / O(n log n)
Comb Sort O(1) O(n log n) / O(n^2)
Pigeonhole Sort O(n + r) O(n + r) / O(n + r)
Cycle Sort O(1) O(n^2) / O(n^2)
Bitonic Sort O(log^2 n) O(log^2 n) / O(log^2 n)
Linear Search O(1) O(n) / O(n)
Binary Search O(1) O(log n) / O(log n)
Jump Search O(1) O(√n) / O(√n)
Interpolation Search O(1) O(log log n) / O(n)
Exponential Search O(1) O(log n) / O(log n)
Fibonacci Search O(1) O(log n) / O(log n)
Ternary Search O(1) O(log n) / O(log n)
Sublist Search O(1) O(n*m) / O(n*m)
Hashing-based Search O(1) O(1) / O(n)
Depth-First Search (DFS) O(V) O(V + E) / O(V + E)
Breadth-First Search (BFS) O(V) O(V + E) / O(V + E)
You might also like
DSA Complexity Cheat Sheet
PDF
No ratings yet
DSA Complexity Cheat Sheet
9 pages
Move-r: Enhanced r-index for Texts
PDF
No ratings yet
Move-r: Enhanced r-index for Texts
19 pages
Cache Design Fundamentals and Strategies
PDF
No ratings yet
Cache Design Fundamentals and Strategies
19 pages
Data Structure Complexity
PDF
No ratings yet
Data Structure Complexity
3 pages
Rabin-Karp Algorithm Overview
PDF
No ratings yet
Rabin-Karp Algorithm Overview
11 pages
Coal CCP
PDF
No ratings yet
Coal CCP
7 pages
NL and co-NL in Space Complexity
PDF
No ratings yet
NL and co-NL in Space Complexity
32 pages
Cache PPT
PDF
No ratings yet
Cache PPT
38 pages
Memory Hierarchy in Computer Architecture
PDF
No ratings yet
Memory Hierarchy in Computer Architecture
21 pages
Feature Aads Chits
PDF
No ratings yet
Feature Aads Chits
4 pages
Associative Cache in Computer Architecture
PDF
No ratings yet
Associative Cache in Computer Architecture
26 pages
Advanced Caching Techniques Overview
PDF
No ratings yet
Advanced Caching Techniques Overview
18 pages
Best Case Time Complexity Overview
PDF
No ratings yet
Best Case Time Complexity Overview
2 pages
Understanding Memory Hierarchy and Cache
PDF
No ratings yet
Understanding Memory Hierarchy and Cache
25 pages
Amortized Analysis in Algorithms
PDF
No ratings yet
Amortized Analysis in Algorithms
12 pages
Understanding Cache Memory and Performance
PDF
No ratings yet
Understanding Cache Memory and Performance
60 pages
Basic Cache Optimization Techniques
PDF
No ratings yet
Basic Cache Optimization Techniques
18 pages
Module 4
PDF
No ratings yet
Module 4
94 pages
Efficient UNCCD Algorithm Improvements
PDF
No ratings yet
Efficient UNCCD Algorithm Improvements
11 pages
16 - Cache Introduction
PDF
No ratings yet
16 - Cache Introduction
42 pages
Cache Design and Optimization Techniques
PDF
No ratings yet
Cache Design and Optimization Techniques
19 pages
Understanding Cache Memory Performance
PDF
No ratings yet
Understanding Cache Memory Performance
31 pages
15day Faang Dsa Revision
PDF
No ratings yet
15day Faang Dsa Revision
24 pages
Cache Memory and AMAT Analysis
PDF
No ratings yet
Cache Memory and AMAT Analysis
5 pages
Computer Architecture Recitation 3 Overview
PDF
No ratings yet
Computer Architecture Recitation 3 Overview
18 pages
2-Way Set Associative Cache Analysis
PDF
No ratings yet
2-Way Set Associative Cache Analysis
23 pages
CS356 Cache Exercise Solutions
PDF
No ratings yet
CS356 Cache Exercise Solutions
4 pages
Computer Organization and Design 4th Edition Patterson Test Bank complete chapters free download
PDF
100% (2)
Computer Organization and Design 4th Edition Patterson Test Bank complete chapters free download
210 pages
Hashing Sets
PDF
No ratings yet
Hashing Sets
62 pages
Cache and Memory Access Problems Explained
PDF
No ratings yet
Cache and Memory Access Problems Explained
2 pages
Big-O Time Complexity Cheat Sheet
PDF
No ratings yet
Big-O Time Complexity Cheat Sheet
2 pages
Advanced Computer Architecture Q&A Guide
PDF
No ratings yet
Advanced Computer Architecture Q&A Guide
7 pages
Fully Associative & Set Associative Mapping Guide
PDF
No ratings yet
Fully Associative & Set Associative Mapping Guide
21 pages
Cache Memory Concepts and Exercises
PDF
No ratings yet
Cache Memory Concepts and Exercises
25 pages
Fully Associative Cache Tag Directory Size
PDF
No ratings yet
Fully Associative Cache Tag Directory Size
4 pages
Big O Notation Updated
PDF
No ratings yet
Big O Notation Updated
14 pages
127 Internal+Working+of+Sets
PDF
No ratings yet
127 Internal+Working+of+Sets
5 pages
Cache Analysis Lab for CS 261
PDF
No ratings yet
Cache Analysis Lab for CS 261
2 pages
Computer Organization: Cache Memory Basics
PDF
No ratings yet
Computer Organization: Cache Memory Basics
44 pages
Genus of Intersection Graphs of Ideals
PDF
No ratings yet
Genus of Intersection Graphs of Ideals
18 pages
Understanding Associative Mapping in Caches
PDF
No ratings yet
Understanding Associative Mapping in Caches
33 pages
Assignment 04 Solution
PDF
No ratings yet
Assignment 04 Solution
3 pages
Tag Directory Size in Cache Design
PDF
No ratings yet
Tag Directory Size in Cache Design
2 pages
Ch5 Review
PDF
No ratings yet
Ch5 Review
4 pages
Cache Design and Locality Analysis Exercises
PDF
No ratings yet
Cache Design and Locality Analysis Exercises
6 pages
Fully Associative Cache Tag Directory Size
PDF
No ratings yet
Fully Associative Cache Tag Directory Size
4 pages
CPU Cache Design Exercises and Analysis
PDF
No ratings yet
CPU Cache Design Exercises and Analysis
7 pages
Memory System Analysis and Cache Strategies
PDF
No ratings yet
Memory System Analysis and Cache Strategies
3 pages
Cache and Memory Access Problems
PDF
No ratings yet
Cache and Memory Access Problems
2 pages
Big O Notation Updated
PDF
No ratings yet
Big O Notation Updated
14 pages
Unit 5 Tries
PDF
No ratings yet
Unit 5 Tries
19 pages
Cache Addressing and HDD Capacity Analysis
PDF
No ratings yet
Cache Addressing and HDD Capacity Analysis
1 page
Array Size vs. Cache Miss Analysis
PDF
No ratings yet
Array Size vs. Cache Miss Analysis
2 pages
Cache Exercises and Simulations V2024
PDF
No ratings yet
Cache Exercises and Simulations V2024
15 pages
Visualizing the Word Problem with Cayley Graphs
PDF
No ratings yet
Visualizing the Word Problem with Cayley Graphs
13 pages
Cache-Oblivious String Dictionary Structures
PDF
No ratings yet
Cache-Oblivious String Dictionary Structures
10 pages
Giu 2488 68 29455 2026-03-28T13 56 48
PDF
No ratings yet
Giu 2488 68 29455 2026-03-28T13 56 48
7 pages
Brics: The Cell Probe Complexity of Succinct Data Structures
PDF
No ratings yet
Brics: The Cell Probe Complexity of Succinct Data Structures
20 pages
Hash Tables: Fast Data Structure Guide
PDF
No ratings yet
Hash Tables: Fast Data Structure Guide
15 pages
Sorting Algorithms and Complexities
PDF
No ratings yet
Sorting Algorithms and Complexities
2 pages
Matrix Operations and Determinants Exercises
PDF
No ratings yet
Matrix Operations and Determinants Exercises
12 pages
Voicebot Integration with Vicidial
PDF
No ratings yet
Voicebot Integration with Vicidial
3 pages
Voicebot Integration with Vicidial
PDF
No ratings yet
Voicebot Integration with Vicidial
3 pages
Comprehensive Data Structures & Algorithms
PDF
No ratings yet
Comprehensive Data Structures & Algorithms
3 pages