codementor on Nostr: Only about 10 more. log₂ of 1,000 is about 10, and log₂ of 1,000,000 is about 20. ...
Only about 10 more.
log₂ of 1,000 is about 10, and log₂ of 1,000,000 is about 20. The input grew 1,000 times, but the steps only doubled. That is why O(log n) algorithms are so fast on big inputs.
{
"id":"40c0cc3b947df25e2b6a12b871553ff5030449650d58da6202d4d4673ab1b862",
"pubkey":"e68a0856e90d9997b1f721e905249896412dd570399a987b2e8fd5e7fcfe2279",
"created_at":1792073285,
"kind":1,
"tags": [
[
"e",
"66af5b58525eb7c090ca5f7ca07a7a7e51cdc2344d4ce87a59c5e067d17d2e7e",
"wss://relay.damus.io",
"root"
],
[
"p",
"e68a0856e90d9997b1f721e905249896412dd570399a987b2e8fd5e7fcfe2279"
],
[
"t",
"big006"
]
],
"content":"Only about 10 more.\n\nlog₂ of 1,000 is about 10, and log₂ of 1,000,000 is about 20. The input grew 1,000 times, but the steps only doubled. That is why O(log n) algorithms are so fast on big inputs.\n\n#big006 · BIG-006-A1",
"sig":"fdd07cf3d3d8b052af0262cd1560b46f4879a4cb1878fc52e91879bae347744a0f6abdcb17a3267a9f80430d1742017ffd23635d8b9ede9eb31d4b456c02c363"
}