正在加载视频...

视频加载失败

which sorting algorithm keeps up with constant random updates best? at every second in this animation, a random item is taken (blue), and its value is changed

82,664 次观看 • 2 年前 •via X (Twitter)

9 条评论

Urban Coyote 的头像
Urban Coyote2 年前

Stop it you’re hurting them 😭

Nick Sweeting 的头像
Nick Sweeting2 年前

How do I know if it's working without sound?

🍁 @notcatra.bsky.social 🍁 的头像
🍁 @notcatra.bsky.social 🍁2 年前

Rather than using a sorting algorithm, which will have to move on average N/2 elements to accommodate a changed value, isn’t it better just to use either a heap or a self-balancing binary tree? These are data structures specifically designed for this task

Jos van der Westhuizen 的头像
Jos van der Westhuizen2 年前

stumbled on this pretty cool gif of bubble sort

Gustavo W. Lopes 的头像
Gustavo W. Lopes2 年前

Well, that's one way to make merge and quicksort misearable.

King Arthur I 的头像
King Arthur I2 年前

this is inhumane

Ryan Moulton 的头像
Ryan Moulton2 年前

Bubble sort would come out much better if you did alternating sweeps in opposite directions.

D4 的头像
D42 年前

Knowing the obsession with randomness in the complexity community, I'm sure there are many un-readable papers on this.

MetaGlitch 的头像
MetaGlitch2 年前

Special requirements may warrant special algorithms. How about an alternating bubble sort that switches between walking upwards and downwards the array?

相关视频

Blockstream Bitcoin Hardware Wallets have Anti-Exfil. Anti-Exfil adds another layer of security by forcing the device to include random data in signatures, preventing attackers from slowly guessing your private keys. With ECDSA (the digital signature algorithm used in Bitcoin), a random private key is combined with a nonce, which is a one-time value intended to add randomness to the signature to ultimately produce a transaction signature that can be validated by other users’ Bitcoin full nodes. Anyone can guess your private key based on your signatures without this random nonce, which is as bad as it sounds! Compromised hardware wallets could create a nonce that appears random but is not. The nonces could be known to an attacker ahead of time. Even worse, the hardware wallet could leak parts of the user’s master private key into individual nonces, which would allow the attacker to guess every private key given a sufficient number of signatures. Anti-Exfil uses “sign-to-contract” to ask Jade to use its signature nonce while cryptographically committing to some random data proposed by the (assumed uncompromised) host computer. The random data’s hash is then combined with the signature nonce to produce the signature. By use of this protocol, the nonce is re-randomized, thus preventing the attack. More info: 10% off on Blockstream store products with coupon "maximus". And the code JADEPLUSEXPRESS gets anyone free expedited shipping on a Jade Plus

Maximus Maximalistus

28,668 次观看 • 19 天前