

To be honest, without going too deep into SW lore, it is entirely reasonable for a given planet to have to import certain goods from elsewhere. Life did not originate on most of the SW planets - they were colonized (at least when humans are concerned). Now, in today’s globalized world trade sanctions can be a debilitating tool, so it’s reasonable to assume that in the SW galaxy the specialization has gone far enough that no single planet can sustain its needs when isolated.
The problem with Naboo specifically was food and exports - it did not grow enough food from what I can remember, and its valuable exports were halted by the Trade Federation. So, in my opinion, it sort of makes sense, especially if we compare it to cough fresher SW writing
Not necessarily, but searching a data set that’s not ordered relies on an assumption that there’s a single thing you’re looking for.
If there are 10 ingredients, you get sick and you only take half next time, you need to be able to assume that there’s one set of 5 that doesn’t get you sick and one that does, and so on until you get down to the last ingredient.
It’s a good way to e.g. quickly find the right breaker in the box, because for each device/ socket there’s just one breaker that’s responsible, so flipping half of them gives you an actionable result