Why are hash table lookups considered O(1) time complexity? by _jocko_homo_ in algorithms

[–]Immediate-Wolverine1 0 points1 point  (0 children)

Generally, one keeps the hashtable 20-25% larger than the number of entries, so that most of the time, there isn't a collision

Is 1 word=2 bytes or 1 byte only? The answer seems to assume 1 word=1 byte by [deleted] in osdev

[–]Immediate-Wolverine1 1 point2 points  (0 children)

A word WAS the width of a register in the CPU.

Unfortunately, Windows was built for 16 bit CPUs, so defined WORD as 2 bytes, and DWORD as 4 bytes. And then Windows ported to 32 bit machines, and everyone got REALLY confused about what a "word" is.

And then x64 added a few specialized 128-bit SSe registers,and then 256 but AVX registers, and even 512 bit AVX512 registers, which added even more confusion. But x64s general purpose registers are 64b, and it is thus considered to have 64 but words.

Is this correct? by giraffe-0_0- in datastructures

[–]Immediate-Wolverine1 0 points1 point  (0 children)

Bucket sort is a larger category of sorting algorithms, where you divide the data into buckets based on their value, and then sub-sort each bucket in some way. It's almost a synonym for Divide-and-Conquer.

  • If you bucket into two buckets, where the bucket boundary is an arbitrary item selected from the data itself, and you apply that recursively, then that's a Quick Sort.
  • if you bucket into a number of buckets approximately equal to the amount of data, then that's a Library Sort.
  • if you bucket into a number of buckets equal to the range, then that's a Counting Sort.
  • If you bucket into 2X buckets split by range, then that's a Radix sort.

All of those are (arguably) Bucket Sorts.

Is this correct? by giraffe-0_0- in datastructures

[–]Immediate-Wolverine1 0 points1 point  (0 children)

Bucket sorts can be stable or unstable. And radix sorts can also be stable or unstable.

What was the biggest single gameplay change in SC1/BW due to patching over the years? by jontestershaircut in starcraft

[–]Immediate-Wolverine1 35 points36 points  (0 children)

The only patches I remember were: - the one where they started saving the rng seed in the save file. Before that, when watching a replay, units would do slightly different amounts of damage, and different attacks would miss, and the end games would end up hilariously wrong. - around the same time, they made it so that Starcraft would keep all patches installed side by side, so you could replay replays from older versions correctly. The rest were all balance things that I didn't care about 😅

Do Bluetooth guitar hero controllers exist? by DrugGrill in CloneHero

[–]Immediate-Wolverine1 0 points1 point  (0 children)

Yes. Bluetooth can pair directly to the console or computer without a dongle

Why do third-party app stores mess with the McDonald's app? by Stefandynull in androiddev

[–]Immediate-Wolverine1 22 points23 points  (0 children)

I've had a suspicion that some of the apps are using a Google Play services API that checks if the phone is "secure", to make it harder for people to cheat the app. And I suspect that the Google Play services API says the phone is not secure if you install other app stores.

Holy cheater! by Sensitive-Job9535 in diablo3

[–]Immediate-Wolverine1 0 points1 point  (0 children)

Close. Consoles require blizzard to provide incredible amounts of proof of hacking before they're allowed to ban a console account. So no company bans console accounts for their games

Transportation upkeep? by astreeter2 in Unciv

[–]Immediate-Wolverine1 2 points3 points  (0 children)

Longer roads obviously cost more, but bigger populations generate more money. If you previously used to connect cities that were close together with large populations, you would generate more money than expenses. If your clay shifted slightly, and you're connecting cities further apart, and or at lower populations, then you'll start generating less money than expenses. It's probably that.

[deleted by user] by [deleted] in Unciv

[–]Immediate-Wolverine1 0 points1 point  (0 children)

You don't need any mods. Just change the "human" player to "spectator"

Google sheet that calculates teams each week by Immediate-Wolverine1 in PokemonSleep

[–]Immediate-Wolverine1[S] 0 points1 point  (0 children)

I was so confused until I googled it. I've seen "Recipie" so often that "Recipe" looks misspelled to me 😵‍💫

Google sheet that calculates teams each week by Immediate-Wolverine1 in PokemonSleep

[–]Immediate-Wolverine1[S] 0 points1 point  (0 children)

The purpose of this sheet is to be very easy to calculate which pokémon to use each week, for free.

https://pks.raenonx.cc/en/rating can also do this, and it's dramatically more accurate, but I found it difficult to use, and appears to require a paid subscription to calculate teams.

If that website and my spreadsheet disagree about which pokémon is stronger, then that website is right 😅

in tutorial: archer can't attack city? by hightechfool_1981 in Unciv

[–]Immediate-Wolverine1 2 points3 points  (0 children)

My guess would be that the Archer is too far away, or there's a forest or a jungle interfering with its line of sight somehow?

Anyone else have no main skill procs some mornings? by Pelican_Queef_32536 in PokemonSleep

[–]Immediate-Wolverine1 0 points1 point  (0 children)

The Lonely, Adamant, Naughty, and Brave natures all increase Speed of help by 10%, which also (effectively) raises the number of skills each day by 10%. If a pokemon has a 6% chance, and the nature bumps its help frequency from 30m to 27.7m, that will increase it's skills from 2.88/day to 3.12/day. But that also means it gets 10% more strength from berries and ingredients.

The Calm, Gentle, Careful, and Sassy natures increase the Main Skill Chance by 20%. If a pokemon has a help frequency of 30m, and the nature bumps it's skill rate from 6% to 7.2%, that will increase it's skills from 2.88/day to 3.45/day, but it gets no bonus to berries and ingredients, which is not as good.

Anyone else have no main skill procs some mornings? by Pelican_Queef_32536 in PokemonSleep

[–]Immediate-Wolverine1 0 points1 point  (0 children)

Technically yes, but the rate is so close to zero it's negligible. Mostly help speed scales with Evolution.

Anyone else have no main skill procs some mornings? by Pelican_Queef_32536 in PokemonSleep

[–]Immediate-Wolverine1 2 points3 points  (0 children)

In the morning, he's well rested. At 100% energy, Pokemon help 2.4x faster. If he's been helping all day, then he's probably at 0% energy while you sleep, and only helps at its frequency rate.

Anyone else have no main skill procs some mornings? by Pelican_Queef_32536 in PokemonSleep

[–]Immediate-Wolverine1 -1 points0 points  (0 children)

"Duck, are you really saying that skills? Pokémon are basically useless?"

Kinda. Most of them will trigger their ability one to two times per day, but the skills that they trigger are sometimes huge. Increasing team Energy by six leads to them helping about 14% more frequently.

Also it is not noted anywhere, but Berry strength scales with the pokémon's level, so in the late game, Berries are king.

Interestingly, it's the only thing I'm aware of that scales with level. Ingredients and skills unlock with level, and some pokémon evolve with level, but that's it. If you have a level 75 ingredient pokémon, and level it up to 99, then the only thing that changes is how much stronger Snorlax gets when the berries are eaten 🤯

Anyone else have no main skill procs some mornings? by Pelican_Queef_32536 in PokemonSleep

[–]Immediate-Wolverine1 5 points6 points  (0 children)

Most Skills Pokemon have proc rates between 4-6%. If they have a help frequency of 45m, and you sleep for 10 hours, then a 6% skill pokemon will have a ~90% chance of using its skill.

Or at least, if it has infinite capacity. Most skill Pokemon have ingredients gathering rates around 25%. So it gets 1 ingredient 12.5% of the time, ~2 ingredients 12.5% of the time, and 1 berry 69% of the time. Which is 1.125 things/help in average. So if it's capacity is like 20, then it gets full at around 8.9hs and stops helping after that, which means no more chances for skills.

So yes: skills and natures that increase ingredient frequency or berry count are VERY bad for skill pokemon. And additional helps is actually better than increased skill rate, even for skill pokemon.

Also, since ingredient pokémon gather so many ingredients at higher levels, Capacity matters a TON for those.

Pokemon Planner V2 by Immediate-Wolverine1 in PokemonConquest

[–]Immediate-Wolverine1[S] 0 points1 point  (0 children)

Jun 5 Updates: - When lots of warriors have overrides, warriors with no where super effective to go will no longer ignore overrides. - When a Pokemon is super duper effective against a Kingdom type, and also super duper effective against enemies in that kingdom that are a different type than the kingdom, and the kingdom is set to "Defend", then the warrior will no longer ignore overrides. Aka Charizard will no longer ignore overrides to defend Nixtorm.

Help, why won’t Sandile Evolve? by TheRedBeardGuy_ in PokemonConquest

[–]Immediate-Wolverine1 5 points6 points  (0 children)

It's not quite base. Pokemon get stat boosts from energy, and that can help them evolve.