You have a file with 4 billion 32-bit integers. The distribution of the integers is random but uniform. You are supposed to find a number NOT in the file. If you created a bit array and used the index to that array to determine if a number existed in the file approximately how much memory would you need?

🎲 Try a Random Question  |  Total Questions in Quiz: 81  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Data Structures and Algorithms Fundamentals Test — practice the complete quiz, review flashcards, or try a random question.


You have a file with 4 billion 32-bit integers. The distribution of the integers is random but uniform. You are supposed to find a number NOT in the file. If you created a bit array and used the index to that array to determine if a number existed in the file approximately how much memory would you need?