Skip to content

Comparison of two algorithms to find k-largest elements in an array

Notifications You must be signed in to change notification settings

achyutb6/k-largest-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sp11

Implement the expected O(n) algorithm for the k largest elements (select) of an array, and compare its performance with the algorithm using priority queues that we designed for the same problem on streams. Use k=n/2 (median), and try large values of n: 16M, 32M, 64M, 128M, 256M.

About

Comparison of two algorithms to find k-largest elements in an array

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages