Nepedia
Back to Discover
Independent Reader
💻

Space complexity

technology Maturity 11-13 Next article →

Computers use memory to solve problems. This is called space complexity. It measures how much memory a job needs. This includes the input space. Input space is the info you start with. It also includes auxiliary space. This is the extra room used to work.

Scientists use Big O notation to talk about space. This math shows how much room is needed. Some jobs need very little room. These are called LOGSPACE jobs. They use space based on the input size. These are good for very large data. This data might not fit in a computer's RAM.

There are different ways to solve problems. Some ways use a machine called a Turing machine. We can group these ways into classes. For example, PSPACE is a class of problems. These can be solved using a certain amount of space. A rule called Savitch's theorem is very interesting. It says that some ways to solve problems use almost the same space. This is different from how time works.

168 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.