comp-think / 2020-2021

The GitHub repository containing all the material related to the Computational Thinking and Programming course of the Digital Humanities and Digital Knowledge degree at the University of Bologna (a.a. 2020/2021).
14 stars 9 forks source link

Lecture "Algorithms", exercise 3 #6

Open essepuntato opened 4 years ago

essepuntato commented 4 years ago

The previous lecture notes, entitled “Introduction to Computational Thinking”, illustrate two different algorithms, expressed in natural language, for implementing the Fibonacci function. Create two distinct flowcharts to implement both of them.

IlaRoss commented 4 years ago

20201016_154916 Referring to the first algorithm (sorry for my handwriting)

laurentfintoni commented 4 years ago

I think this is the first algorithm Screen Shot 2020-10-16 at 4 08 31 PM

laurentfintoni commented 4 years ago

And I think this is the second but tbh my head hurts Screen Shot 2020-10-16 at 4 10 38 PM

laurentfintoni commented 4 years ago

I forgot to specify the value in the third return value box, should be return value "sum" or something like that...

giorgiasampo commented 4 years ago

Fibonacci's code

SarahTew commented 4 years ago

Fibonacci 2 Fibonacci 1

gabrielefiorenza commented 4 years ago

FLOWCHART 2 FLOWCHART 3

giorgiasampo commented 4 years ago

Fibonacci 2

I don't know if this was what I was supposed to come up with, but I tried to make something similar to a "do loop" with a check variable, in order to generalie the function.

dbrembilla commented 4 years ago

Fibonacci without recursion Diagram (1) Fibonacci with recursion Diagram (2)

edoardodalborgo commented 4 years ago

This is the first algorithm Flowchart1_es3_lez2

ChiaraCati commented 4 years ago

D061DE3F-BD19-47AE-9B06-0DECC178EE42

ChiaraCati commented 4 years ago

748400DA-019C-4AFB-9358-40ED2D6464D1

SusannaPinotti commented 4 years ago

Flowchart Fibonacci Iterativo Flowchart for the first algorithm

SusannaPinotti commented 4 years ago

Flowchart Fibonacci ricorsivo (2) Flowchart for the second algorithm

diegochillo commented 4 years ago

Second (recursive) algorithm: Flowchart_Fibonacci_Recursive

ConstiDami commented 4 years ago

First algorithm

Ex3_1

Second algorithm

Ex3_2

penelopelask commented 4 years ago

fibonacci 1 + 2

yunglong28 commented 4 years ago

Fibonacci ex. 1 Untitled Diagram(1)

yunglong28 commented 4 years ago

Fibonacci 2 Untitled Diagram(2)

Fran-cesca commented 4 years ago

Untitled Diagram (2)

GiuliaMenna commented 4 years ago

Untitled Diagram (1) Flowchart 2

AlessandraFa commented 4 years ago

Fibonacci flowchart 1

Fibonacci recursion

DeniseBas commented 4 years ago

Copy of Untitled Diagram Untitled Diagram-3

LuisAmmi commented 4 years ago

image The second flowchart

AlessandroBertozzi commented 4 years ago

First algroroithm Fibonacci 1

enri-ca commented 4 years ago

Fibonacci 1 immagine

Fibonacci 2 immagine