# What is an Algorithm? An algorithm is a well-developed, organized approach to solving a complex problem.

## Presentation on theme: "What is an Algorithm? An algorithm is a well-developed, organized approach to solving a complex problem."— Presentation transcript:

What is an Algorithm? An algorithm is a well-developed, organized approach to solving a complex problem.

Algorithms Examples of algorithms include Musical scores

Algorithms Examples of algorithms include Knitting patterns

Algorithms Examples of algorithms include Recipes

1. Draw a diagonal line 2. Draw another diagonal line connected to the top of the first one 3. Draw a straight line from the point where the diagonal lines meet 4. Draw a horizontal line over the straight line 5. At the bottom of the straight line, draw a curvy line 6. Draw a diagonal line from the bottom of the first diagonal to the straight line 7. Draw a diagonal line from the bottom of the second diagonal to the straight line

Compare your picture with others' pictures… Were they different? Why? What was difficult about following the instructions What was missing from the instructions?

1. Draw a diagonal line 2. Draw another diagonal line connected to the top of the first one 3. Draw a straight line from the point where the diagonal lines meet 4. Draw a horizontal line over the straight line 5. At the bottom of the straight line, draw a curvy line 6. Draw a diagonal line from the bottom of the first diagonal to the straight line 7. Draw a diagonal line from the bottom of the second diagonal to the straight line

Now write a set of instructions that work! Ensure only one way to interpret each step unambiguous … and enough detail in each step About 10 steps

… Now draw a shape on paper, but not a HOUSE or a PLANE, too obvious! Write the algorithm Write a set of instructions that explains how to make a paper shape from 1 sheet of A4 paper Test it Try out your algorithm with someone else – does it work? Note: follow your instructions as closely as possible Adjust the instructions if necessary

… You will have two sets of instructions, one on how to draw a kite, the second on how to draw another object. In the same Word document you have with all your labs: PROGRAM-DESIGN-PORTFOLIO.DOCX add in the two sets of instructions, one on how to draw a kite, the second on how to draw another object. e-mail your document to Damian.Gordon@dit.ie with a subject heading of PROGRAM DESIGN TUTORIAL #1 and in the message of your e-mail please let me know your full name, your student number, the name of your programme, the programme code, the name of the module, the year you are in (first year), and your assignment.

Download ppt "What is an Algorithm? An algorithm is a well-developed, organized approach to solving a complex problem."

Similar presentations