100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
In summary, all video lectures $13.50   Add to cart

Summary

In summary, all video lectures

 14 views  0 purchase
  • Course
  • Institution

Passed the exam with a 9! Hope someone will achieve the same :D

Preview 3 out of 19  pages

  • October 10, 2023
  • 19
  • 2019/2020
  • Summary
avatar-seller
Week 1

Watch web lectures and read syllabus!



First problem:

Person 1 donates 1 euro

Person 2 donates 2 euro

Till 100th person

How much total? HOMEWORK!!

Person (i) donates 1 more euro (x) then the person before so (x) is i+1




Algorithm: an effective method, consisting of a finite number of steps or instructions to solve a problem,
which always work.

Properties of algorithms:

- Input
- Output
- Definiteness (precise steps)
- Correctness (correct output)
- Finiteness (finite number of steps)
- Effectiveness (correct and reasonable time)
- Generality (for all problems of desired form)

Without algorithms no computer programs would exist. Computer programs are indispensable  study
of algorithms is necessary. Development of analytical skills.

Solution strategies:

- Try something (guess and check)
- Go through all the possibilities
- Divide the problem into several sub problems or steps
- Use of formulas/equations
- Discover a structure or pattern
- Make a model
- Brute force
- Divide-and-conquer (D&C)



Understand
the problem

,Choose a Solve the Succes? Test/Check
strategy problem

, Week 2

Web lecture: From algorithm to flowcharts

Flowchart: a graphical representation (diagram/chart) of an algorithm/process. A flowchart consists of
data in planes (for example a square/triangle) connected with arrows.

Symbols of a flowchart:

- Flow lines: show the direction of data (flow of control)



- Start (1 output, 0 input) and end (0 output, 1 input) symbols: represented by ellipses, ovals,
circles or rectangles with rounded corners.




- Process block: represented by rectangle (for example: calculations, opening/closing a file)




- Input/output (I/O): represented by a parallelogram (example: reading input/printing output)




- Decision: represented by a diamond. 1 intput, 2 output.




- Process module: represented by a rectangle (two lines) with a line on both sides (example:
reading process/calculation process).




An algorithm description (spoken language or pseudo code) can not be entered directly into a computer.
The algorithm has to be converted into a computer program. Flowcharts are easy to analyze, to design,
to maintain or to document a process or program. They are important in problem analysis and in finding
efficient solution.



Web lecture: Recursion

Recursion: recursion is a technique where a method or function calls itself. Recursion is not a statement,
it is a technique.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller gideonrouwendaal. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.50. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

66579 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.50
  • (0)
  Add to cart