why use unordered map and not unordered set
- User
why use unordered map and not unordered set
Assistant
You're right to question that! It's a good point to consider. The key difference lies in what we need to store and how we use it.
-
unordered_set: Stores only the values themselves. It's useful for checking if a value exists in a collection quickly. If we used anunordered_set, we'd know if the exists in the array, but we wouldn't know it is.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.