Skip to content

Problem: Randomly distribute fixed number of objects into fixed number of buckets. Each bucket should atleast have an object.

License

Notifications You must be signed in to change notification settings

pranavcode/pseudo-rand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pseudo-rand
-----------

Problem: Randomly distribute fixed number of objects into fixed number of buckets. Each bucket should atleast have an object.

Solution Algorithm:

1) Put one object into each bucket.
2) For each remaining object put it into randomly selected bucket.

About

Problem: Randomly distribute fixed number of objects into fixed number of buckets. Each bucket should atleast have an object.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages