Unconventional Sorting Algorithms
codingkaiser.blog
Unconventional Sorting Algorithms
1–10 of 60 posts
Re: Unconventional Sorting Algorithms
#2https://www.washingtonexaminer.com/opinion/nih-admits-fauci-...
Re: Unconventional Sorting Algorithms
#3NIH admits Fauci lied about funding Wuhan gain-of-function experiments https://www.washingtonexaminer.com/opinion/nih-admits-fauci-...
Re: Unconventional Sorting Algorithms
#4If you imagine that there's no "easy" algorithm to return a sorted list (but sorted lists do exist), then the only methodology possible is to try all combinations. And you do this either systematically, or randomly.
Random NP-complete algorithms, such as WalkSAT, are quite good in practice. Systematic NP-complete algorithms, such as DPLL-SAT, are more "obvious" in how they work, and are sufficient for smaller sizes.
Re: Unconventional Sorting Algorithms
#5https://www.nationalreview.com/news/nih-admits-to-funding-ga...
Re: Unconventional Sorting Algorithms
#6O(n) sort achieved?
Re: Unconventional Sorting Algorithms
#7Re: Unconventional Sorting Algorithms
#8Start with p=0 and add 2^n for each n. Then subtract the largest power of 2 successively to get your integers ordered.
Con: p will be very big.
Pro: you don't need ifs!
Re: Unconventional Sorting Algorithms
#9Isn't 'sleep sort' linear with respect to array size? O(n) sort achieved?
Re: Unconventional Sorting Algorithms
#10 def index_sort(a):
n = len(a)
output = [None] * n
for i in range(n): #can run in parallel, damn the GIL
index = 0
for j in range(n):
if a[j]