BestHub
Discover
Artificial IntelligenceBackend DevelopmentMobile DevelopmentProduct ManagementCloud NativeFrontend DevelopmentFundamentalsBig DataCloud ComputingGame DevelopmentR&D ManagementOperationsDatabasesInformation SecurityBlockchainUser Experience DesignInterview ExperienceIndustry Insights
View all →
TopicsTagsTrendsRanking
Sign in
Discover
Artificial Intelligence Backend Development Mobile Development Product Management Cloud Native Frontend Development Fundamentals Big Data Cloud Computing Game Development R&D Management Operations Databases Information Security Blockchain User Experience Design Interview Experience Industry Insights View all →
TopicsTagsTrendsRanking
Sign in
  1. Home
  2. / Tags
  3. / bucket sort
Ops Development & AI Practice
Ops Development & AI Practice
Sep 13, 2024 · Fundamentals

How to Find Top‑K Frequent Elements in O(n) Time Using Bucket Sort

This article explains how to efficiently find the k most frequent elements in an integer array using a bucket‑sort based algorithm that runs in linear O(n) time, detailing problem constraints, conventional O(n log n) approaches, the optimized method, Go implementation, complexity analysis, and test results.

Top‑Kalgorithmbucket sort
0 likes · 7 min read
How to Find Top‑K Frequent Elements in O(n) Time Using Bucket Sort
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 24, 2019 · Big Data

Finding the Median of 10 GB of Integers with a 2 GB Memory Limit

The article outlines a multi‑pass bucket‑sorting strategy to locate the median of a 10 GB unordered integer file using only 2 GB of RAM, detailing how to partition data into byte‑wise buckets, compute the median’s bucket, and finalize the result with in‑memory sorting.

algorithmbucket sortexternal sorting
0 likes · 6 min read
Finding the Median of 10 GB of Integers with a 2 GB Memory Limit
BestHub

Editorial precision for engineers who prefer signal over noise. Deep reads, careful curation, and sharper frontiers in software.

Best Hub for Dev. Power Your Build.
Navigation
Status Discover Tags Topics System Status Privacy Terms Rss Feed