Many of times people defragment their computer for reasons such as:
- To speed-up their computer
- Microsoft prompt them to do it
- As a general practise
- Prolong the life of their hard drive
In any case, the process is shun upon and often kept to the last minute or the end of the day for several reasons such as:
- It takes too long to complete
- It is boring
- It freezes my computer and I am unable to continue with my tasks on the computer
Thus, the solution would be:
For problem 1:
In school we have learn recursive sorting which is according to Wikipedia:
“is a method where the solution to a problem depends on solutions to smaller instances of the same problem”
We could implement this method to defragment a hard disk in minutes since the big O notation for this method is much lesser than the current method implemented by the system
This is done by:
- Having the computer look for unique files
- Each unique file initializes a function that goes and searches the hard disk for the remaining parts till it reaches the end of the hard drive
- The first function to find all the parts (which is signified by them having reached the end of the hard drive) would pass on the entire file to another function (e.g. allocator()) which would then group them together and slot them side by side
- At the end, all the computer would have to do is to read the defragment program’s output list to find where to find what
For problem 2:
Have the program be able to toggle between
- “normal mode”
- The program works in the background
- Has a computer tread watcher which tries to keep CPU memory consumption to a level specified by the user (in advance mode) or select pre-set options (in beginner’s mode)
- “Game mode”.
- The user get involved in the process by playing a game similar to “Puzzle Dozer” which is available in apple products
- The boxes would represent all the file fragments found on the hard drive which the computer help to identify and colour code them
- The user uses the bulldozer to move these boxes together
- Once all the boxes of the same colour are grouped together the boxes vanishes and the next individual boxes appear
- To make it exciting, possible upgrades could include
i. obstacles could be developed on a later stage
ii. changeable background images
iii. changeable bulldozer with certain power-ups
No comments:
Post a Comment