Sunday, May 21, 2017

Presentation N* 1



Today we are presenting a bunch of content connected by the Theme of: algorithms. We will be firstly presenting an explanation for a special algorithm about  Turing machines/V. Neumann architecture: (the algorithm). Then, we will show a embedded mindmap of Mindomo explaining in an easy and understandable way the concept of algorithm. After that, there will be an explanation of the concept of “algorithm” and it’s definition, and a real life example with a game. These work and post was developed by the entire class, the 8 of us. Now let’s start with the post, explanation and real life presentation.




This is the mindmap that we do to explain the definition of algorithm.



There are many concepts in the idea of algorithm that resembles the Turing machines and the V.Neumann architecture. One of them that interested us specially, was the from I/O (Input/Output). The I/O necessity is a similarity between the three concepts/architectures. Every one of them needs an input to start working, and will produce an output, either for the program, or the user.







The concept of algorithm is mainly used in mathematics and computer science, and it is a self-contained sequence of actions to be performed. Algorithms can perform calculation, automated reasoning and data processing, as examples of their common uses.

Algorithms are effective methods that can be expressed within a finite amount of space and time in a formal language for calculating a function. The algorithm starts at an initial state with an initial input. The instructions a path of well-defined successive states, eventually producing an output and entering a “ending” or final state. The transition between states however, is not deterministic, as there are algorithms that incorporate random inputs.

The concepts of algorithm is very old: it has existed for many centuries. The formalization of the term however, began with the search for the answer to the “Entscheidungsproblem” (Decision Problem). Still, giving a formal definition to algorithm remains a challenging problem.

The definition that we give to these concept is: a set of before-given instructions that need to be followed in a particular order (unless specified) until the problem is solved and an output is produced.




Description of our game

Frist we check to see if the amount of player that joined the game is bigger than 3 and then starts the game, othewise it will throw back a message saying "Not enought players" and the game won't start. After that each Player is given the name Player + number (for example: first player gets the name Player1, second player gets the name Player2 and so on)and, with a series of instructions, we make Player1 and Player2 allies and tell them how to impress the rest of the group. Now the game begins. Player1 select an object in the room, tells the rest of the group wich is without Player2 hearing him and then point at an object of the same color as the object he/she selected, without it being the actual object. After that a loop of pointing and saying no start and goes on until Player1 point at an object with the same color as selected object, this beign it. It is at this moment in wich Player2 notices that it is the same color as the object Player1 selected first and says ("That's it, it is the object you selected!"). at this point the game starts abrouptly with he audience impressed.


The algorithm of our game

If amountOfPlayer >= 3:
Let x = 1
For each player in the room:
Assign name (“Player + x”);
Let x = x+1;
Player1 tells Player2 (“The color of the first item I select will be the color of my selected object, but it won’t be the first one I point”) without the rest of the players knowing nor hearing;
Player1 selects an object = SelectedObject ;
Player1 tells AllPlayer except Player2 (“I selected <SlectedObject> and player 2 will guess it”), Player 2 can’t listen nor see;
Player1 points an object of the same color as SelectedObject;
Player2 says (“it isn’t”);
While Player2 doesn’t say (“That’s it”):
Player1 points out an object;
If colorOfThePointedObject == colorOfSelectedObject:
Player2 says (“That’s it, it is the object you selected!”);
break;
Else:
Player2 says (“No it isn’t”);
Else say (“Not enough Players”);


Wednesday, May 10, 2017

TURING MACHINES AND V. NEUMANN ARCHITECTURE





In this Post I will compare the V. Neumann architecture and the Turing Machines. I watched 3 videos before doing this post. The first one and the second one were about Turing Machine (explanations) and the third one was called: How a CPU works. The last one I mentioned was about a simulatio of V. Neumann´s architecture. I have made a Mind Map explaining the two before mentioned concepts. On one hand we have the Turing Machine, which is a theorical device. And on the other hand we have the V. Neumann architecture, which is a real Computer system. Just in case you didn´t understood the Mind Map, and for adding more specific Information I will add some images with explanations. And I will compare the two main Concepts mentioned.




Make your own mind maps with Mindomo.


Turing Machines and V. Neumann architecture have many similaritys. I will mention them now.
  • Input and Output
  • CPU / Read-Write head
  • Memory (RAM) / Tape
  • Computer Program / Program Book
  • Binary "Launguage


This is how a CPU works (simplified explanation).

https://en.wikipedia.org/wiki/Central_processing_unit



This is how the Turing Machine works with 1 & 0 (simplified explanation).

https://www.decodedscience.org/the-turing-machine-a-brief-introduction/10852/2

Turing Machines and V-Neumann computer



Turing Machines and V-Neumann computer


In this post i am going to tell you which are the similarities between a Turing Machine and a v-Neumann Computer. I take the information from the videos that are posted in Classroom about how a Turing machine works and how a CPU works. Then, i will show, in a mind map, using the divertional thinking, the information that i have understood in these videos. The twstructures have a lot of things in common, ranging from basic concepts to even the overall work they do and everything they can do. A V-Neumann Computer is basically based on the Turing Machine, but they also have some differences, like that the modern computers have more variables than the Turing Machines.



Make your own mind maps with Mindomo.

Turing Machine:
Is an computing device consisted in a read-write head with a tape passing through it. This tape is divided in squares, and each one of this squares brings or a 0, a 1 or even a space (-). This tape is the machines general purpose storage medium, serving both as the vehicle for input or output and as a working memory for storing the results of intermediate steps of the computation. This is an example from a tape :


V-Neumann Architecture:
The Von Neumann modell consisted on a CPU, memory and 1/0 devices. The programm is stored in the memory. The CPU fetches an instruction from the memory at one time and executes it.

There are a lot of similaritys between this 2 machines. This is because turing machines are building blocks for modern compuers, even for quantum computers. Turing machines can do everything, but that changes with quantum computers.Quantum computers can't do more things than a turing machine can, but more efficiently.

Turing machine

Hi, in this post I will talk about Turing machines, beacuse that is what we have been learning lately in class. How they work, what they are and their main concepts are some of the topics I will explain with a mindmap done with mindomo. In this mindomo I will also explain about the architecture of V. Neumann. In class we have been seeing videos that explain Turing machines and CPU and that is where I took the information that will appear in this post. I will also insert text and images to fully answer the main question of this exercise.

This is my Mindmap.

This is how Turing machines work.

This is a CPU.

This is the V. Neumann architecture.

This is a prototype of a turing machine.



😻Similarites😸 

After seeing all this you guys should definitely be able to tell that the V. Neumann architecture is pretty much a real life turing machine. That said, there are some analogies between them, for example program book (turing machine) and a computer program (V. Neumann); strip of tape and memory; read/write head (turing machine) and controlling cables (V. Neumann); the little box reading the tape and the CPU and so on. On the left you've got a cheat-sheet with the most important similarities.






💀 Conclusion💀

Finally we could say that there are a lot of similarities between the two. This is because turing machines are building blocks for modern compuers, even quantum computers! Some say everything a computer can do a turing machine can do, but that changes with quantum computers, right? I don't know, but I think quantum computers can't do more things than a turing machine can, but more efficiently.



Turing machines and V. Neumann architecture

Lately we've been learning what a turing machines is and how it works. Beside that we've also been studying V. Neumann's architecture. In this post I'll try to show how the turing machine concept is used to build modern computers. After studying about the topic I've found some similarities that show how many of the turing machine conepts are used as building blocks today. Because of the nature of a turing machine being a only a theory most of the concepts are only analogies, but, with some thinking, we are able to connect them to a V Neumann architecture.
 


After seeing all this you guys should definitely be able to tell that the V. Neumann architecture is pretty much a real life turing machine. That said, there are some analogies between them, for example program book (turing machine) and a computer program (V. Neumann); strip of tape and memory; read/write head (turing machine) and controlling cables (V. Neumann); the little box reading the tape and the CPU and so on. On the left you've got a cheat-sheet with the most important similarities.
Finally we could say that there are a lot of similarities between the two. This is because turing machines are building blocks for modern compuers, even quantum computers! Some say everything a computer can do a turing machine can do, but that changes with quantum computers, right? I don't know, but I think quantum computers can't do more things than a turing machine can, but more efficiently.

References:

Turing Machines and V. Neumann computer


Turing Machines are a theoretical and mathematical concept.  They are considered the base of all computers nowdays.  Turing Machine sounds like a very difficult concept, process, etc.  But actually the work with very simple instructions in a tape with 0s & 1s.  Todays computers are based in a Von Neumann architecture, talking about physical components, so in theory the architecture of a Von Neumann computer is based in a Turing Machine.  Both have similarities, from basic concepts to the things that they do.  Actual, modern computers in theory the have more variables, but they need some basic things like a CPU and a RAM, they also have very similar concepts.  Now I will show similarities between Von Neumann computers and Turing machines and other things like what can they do or the components, etc.



Turing Machines and Von Neuman computers have many similarities.  They have two main components the CPU and the memory for the Von Neumann computer and for the Turing machines the Read/Write head and the tape.

This is a CPU.

This is a basic example of a Turing Machine.

Both follow a set of instructions, in the case of the Turing Machine very simple instructions,  The lenguaje that both use is the binary code,

This is an  example of a binary code (0s & 1s).



Tuesday, May 9, 2017

Turing machines and V Neumann computer

Hi and welcome back to my blog! Today I will be talking about Turing machines and V Neumann architecture. This is a topic that we have been talking about last week in our class. We saw three videos that explained both topics, then extracted the main concepts and the most important information and created a Mind-Map. In the Mind-Map I compared concepts so I could come up and analyse their similarities. The Mind-Map is showed below. Our goal is to answer the question " Can you find a couple of Turing-machine-like structures in a V Neumann Computer". The words that are highlaithed in the text below are the ones that answer the question.



As you can see in my Mind-Map a Turing Machine is an abstract mathematical object, it has similarities with modern computing. It processes information by reading symbols and replacing with others (0&1s), it recives them via an Input (the tape divided into cells) and gives an Output on the same tape, according to a set of instructions. Furthermore the Turing Machine was created to compare propositions and decide wether they are correct or not. (Entscheidungsproblem)

According to my Mind-Map , the V Neumann architecture consists of a CPU , which inputs, processes and outputs information , with help of the RAM (Random Access Memory) , which contains all the data that the CPU processes.

 
One of the main istructions that the CPU processes is the comparison of different data with the "if Jump''. Meaning that if the data is correct it goes to one direction , but if its not correct it goes to another direction. 

The RAM gives the CPU the  instruction it has to follow and the Your browser does not support frames. 

In conclusion you can find a couple of Turing Machines like structures in V Neumann architectures. 
The Turing Machine is like the RAM , because it recives an input , processes it and gives an output. It also compares information (Entscheidungsproblem and if jump).
The tape in the Turing Machine is like the RAM because both contain the instructions that the processing unit has to follow. 





Turing machines in a V. Neumann architecture


Turing machines are considered the base for today`s computers. And today`s computers are based in a Von Neumann architecture for it`s physical components, so as they are based in Turing Machines in the theory. Both structures or achitectures have a lot in common, ranging from basic concepts to even the overall work they do and are able to do. And while modern, actual computers have way more variables than the Turing machines in theory need (needing, in computer-like language, only CPU & RAM), they rely on the same basic ideas. Today we are showing the similarities that Turing machines and Von Neumann architecture have in common.


Make your own mind maps with Mindomo.

Turing machines and Von Neumann architectures have many similarities. Both, for example, have 2 main logical components: the memory/tape, and the CPU/ Read\Write head.
Both also, work based in a set of instructions previously set to the machine, which follows these commands for completing the task.
The "language" they use, binary, is also shared between the two.