8000 GitHub - H-Shen/K-Way-Merger: A toy implementation of k-way merger in Go
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

H-Shen/K-Way-Merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-Way Merger

A toy implementation of K-way Merger in Go. The app:

  • Receives a list of input files and an output file
  • Sort integers in each input file by increasing order and rewriting the result to the input file
  • Merge all integers in all input files and write the result to the output file using a binary heap.

A possible application scenario: Sorting billions of integers after splitting them into multiple files.

Usage

To build the image and execute the unit tests in a docker container, run:

docker build --no-cache -t kwaymerger-image01 .
docker run --name kwaymerger-container01 kwaymerger-image01

Requirements

  • go 1.17

References

About

A toy implementation of k-way merger in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0