Unit # 01
Planning a solution:
Some strategies are.
- Divide & conquer: It divides a complex problem into smaller problems.
- Guess, check & improve: The designer guesses a solution to a problem & then checks the correctness of the solution.
- Act it out: The designer defines the list of "to-do" tasks. Afterwards he/she performs a task.
- Prototype (Draw): This technique draws a pictorial representation of the solution. It is not the final solution, however, it may help designer to understand the components of the solution.
- The selection of a strategy depends upon the nature of the problem.
- Candid Solutions:
- Candid⇾ Refers ⇾Unplanned
- Example: If you are asked to find number of students in your school who can play cricket.
- Candid Solution:
You can estimate by finding cricket players in your class & then multiplying it by the total number of classes in your school.(Cricket players in your class) X (Total numbers of classes in school)
- For exact solutions: You have to visit each class or getting data from teachers.
- Selecting the Best Solution:
- Example: Assume that names of all the students in your school are available on a website & you are asked to search a name.
- Possible Solutions:
- Look at each name on the website one by one until the name is found or list is over.
- Take printouts & search required name.
- Copy names, put them in Excel sheet & sort them in alphabetical order.
- Press Ctrl+F, when the list is in a browser. You can type the name to search automatically.
No comments:
Post a Comment
Thanks for your response