Science Fair Projects Ideas - Space-time tradeoff

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Space-time tradeoff

In computer science, a space-time tradeoff (also a time-memory tradeoff) can sometimes be made in the event of a shortage of either time or space. Some algorithms can be made to run in a shorter time if they use more memory space, and vice versa.

A space-time tradeoff can be applied to the simple problem of data storage. If data is stored uncompressed, it takes more space but less time than if the data were stored compressed (since compressing the data reduces the amount of space it takes, but it takes time to run the compression algorithm). Depending on the particular instance of the problem, either way is practical.

For another example, bubble sort is a sort algorithm that uses O(1) (constant) memory space and O(n2) (quadratic) time. In other words, its memory requirement is unrelated to the length of the list to be sorted, but its time requirement grows proportionally to the square of the length of the list. In the case of the sorting problem, a space-time tradeoff can be made by using a different algorithm such as binary tree sort. Its memory requirement is O(n) (linear), but its time requirement is O(n lg n) ("linearithmic") which is good for a sort algorithm. Binary tree sort's time requirement grows more slowly than bubble sort's, but its memory requirement grows faster.

In the case of the sorting problem, all-around better algorithms exist, such as heapsort, which combines the good qualities of bubble sort and binary tree sort: its time requirement is O(n lg n), and its memory requirement is O(1).

In other areas, space-time tradeoffs can be made when performing brute force attacks against cryptosystems. The meet-in-the-middle attack is an application of space-time tradeoffs.

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice