Sorting with Fibonacci Numbers and a Knuth Reward Check
20 points
4 days ago
| 1 comment
| orlp.net
| HN
zvr
22 hours ago
[-]
Fascinating!
reply
ncruces
19 hours ago
[-]
Indeed.

I implemented a gap sequence not analyzed here (Gonnet & Baeza-Yates) and it's amazing how compact Shell sort can be.

C: https://github.com/ncruces/go-sqlite3/blob/main/sqlite3/libc...

Go: https://github.com/ncruces/sort/blob/main/shell/shell.go

reply