Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gizmo686
· 12y ago · 0 comments
wouldn't sleep sort be O(k), where k is the largest element to be sorted? (Assuming the clock and scheduler are precise enough to achieve the correct answer the first attempt).
Comments
[–]
mihai_ionic
12y ago
I would't really count time passing as an operation, since other programs are able to run during that time.
[–]
gweinberg
12y ago
You could keep it linear by first going through the list to find the max, then scaling down.