AlmightySnoo 🐢🇮🇱🇺🇦@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agoLLMs Making Algorithms & Data Structures Obsoletelemmy.worldimagemessage-square8fedilinkarrow-up140arrow-down13
arrow-up137arrow-down1imageLLMs Making Algorithms & Data Structures Obsoletelemmy.worldAlmightySnoo 🐢🇮🇱🇺🇦@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square8fedilink
minus-squareduncesplayed@lemmy.onelinkfedilinkEnglisharrow-up10·1 year agoAny algorithm can be O(n^2) if you only want it to be occasionally right.
minus-squareIridium@lemmy.worldlinkfedilinkEnglisharrow-up7·1 year agoFunction isPrime(number): return false Accurate for almost 100% of cases
minus-squareJulian@lemm.eelinkfedilinkEnglisharrow-up3·1 year agoAny algorithm can be O(1) if you cache all the answers beforehand.
Any algorithm can be O(n^2) if you only want it to be occasionally right.
Function isPrime(number): return false
Accurate for almost 100% of cases
Any algorithm can be O(1) if you cache all the answers beforehand.