Index
How much detail does an algorithm need?
Frequently Asked Questions (FAQs)
How much detail does an algorithm need?
Generally, the more detail the better.
So, assuming we are writing the algorithm instructions for "making toast". And one of the things we are given is:
We have a clean kitchen with all the necessary dishes, utensils, and ingredients
So the question might be, regarding detail, should we include steps for "finding things"?
Generally, the more detail the better. Here are some example steps we could add regarding "locating/finding" items:
...
Find butter knife
step(s) for using butter knife...
...
Locate toaster
step(s) for using toaster...
...
NOTES
We are assuming our algorithm (instructions) reader
knows nothing
about the given subject
It's helpful to step thru the algorithm instructions when done in a real setting to test them
Data Structures And Algorithms (DSA) (Chapter 101 - Introduction to Algorithms)
Chapter 101 - Introduction to Algorithms
FAQs
Contents
Intro
How-To
Quiz
Examples
Recap
Refs
FAQs
Challenge
Chapter
Top
Search
TOC