Play this game!!! https://scratch.mit.edu/projects/100912180/#editor
We are looking at a binary search today - where the computer keeps halving the numbers so it guesses your answer faster! Go to - https://scratch.mit.edu/projects/100912338/#editor Move the algorithm blocks around until they look like the one below.
23 Comments
ali
13/11/2018 02:59:26 pm
firstly you have to set number 0 to 127 lower and upper then you tell it to think
Reply
ali
13/11/2018 03:04:49 pm
of a number between lower an upper then you round lower and upper then divide it by two ask it guess or more then put answer y or answer n set upper to guess say its lower
Reply
edris
13/11/2018 02:59:58 pm
It was easier to find our answer because the script was harder and it halves the possibility and it gives you a sensible guess which affects on the rest.
Reply
Zeeshan
13/11/2018 03:01:07 pm
It was easier because you find out the answer and it says is it 69 or more so it will make it quicker.
Reply
Nada
13/11/2018 03:01:24 pm
I think that its telling the computer to change the upper or lower number repeatedly if I type [Y] OR [N]
Reply
Ayaan Adam
13/11/2018 03:01:49 pm
in this algorithm , its telling the computer to halve the upper number to make the guess easier.]
Reply
Niola
13/11/2018 03:01:58 pm
1) You have to think of an number between 127-0 2) Then after the computer will have to guess your number and if its wrong u have to put into the little box n stands for no and y stands for yes and when you say the letters the upper and lower goes up. 3) When the computer guesses it it will come up as is its 30 or a number what your thinking about and then after if you wanna play again u will have to press the green flag.
Reply
khalid
13/11/2018 03:02:29 pm
first it will say lower is 0 put 127 is upper and it will say is it more the n 60 then you tip n or y and mean yes or no.it will guess in till your fished .
Reply
Shna
13/11/2018 03:02:41 pm
First you need to think of a number between 0 and 127 and then the computer will say is it 63 or more but then you type in y [yes] or n [no] and then its going to go higher or lower comperes to what you type and then it will but the number smaller and smaller and it will say its 18 [for e.g.]
Reply
Rosie
13/11/2018 03:03:09 pm
in this algorithm we are asking/telling the computer to change the upper and lower again and again to do this all you need to do is think of number and when they guess it say [Y] from your keyboard or if it got it wrong say [N] witch is on your key bored , when you do this it will keep on asking questions like "is it 4 or more?" and you say [y] or [n]
Reply
jack
13/11/2018 03:03:09 pm
In this game we are telling the computer to think of a number between 0 and 127 and guess the number that we are thinking of we sat (Y) if yes and (N) means no
Reply
Maida
13/11/2018 03:03:18 pm
In the algorithm it is telling you stuff that is on the algorithm. The algorithm is first gonna round 2 then if it is it .... and it is wrong you put a n and if it is right you put a y.
Reply
farwa
13/11/2018 03:03:48 pm
1)first you have to think of a number between 0 to 127 then the computer will guess a number then it will add two number then divide it by 2 then they will get a random answer and say that until the end when you finish and they get the correct answer it will say its than your answer
Reply
Dania
13/11/2018 03:03:54 pm
In the algorithm the first four blocks are telling the computer to ask you to think of a number between 0 and 127 when you press the green flag on the top right corner. It guesses a number between the two numbers that you have picked and also asks you if it is lager than their guess. If you say y (yes) then they'll pick a number that is lager if no it will pick a smaller number until it guess your number.
Reply
remarno
13/11/2018 03:04:09 pm
The computer made it easier to find our guess
Reply
Zoe
13/11/2018 03:04:19 pm
1) you have to think of a number between 0-127 then after you done the computer will try to guess your number, your computer will ask if it is 64 or more if its more you need to say y and if its not you need to say n then your computer will half 64 or times 64 when your computer will keep doing the same thing until it guessed your number.
Reply
meerub
13/11/2018 03:04:43 pm
the algorithm is when you tell the spirit what you what to do .
Reply
Atyab
13/11/2018 03:04:49 pm
The algorithm is about there is a human thinking of a number between 0-127.The computer will guess by adding lower and upper numbers and then having them . It will keep guessing by adding both numbers then halving them.If it is right you press y it will set lower to guess.If it is wrong you press n and set upper to guess -1.
Reply
Abdurrahman
13/11/2018 03:05:22 pm
The computer is being told to ask if your number is 54 or more for example. I think the algorithm is trying to make the computer guess quicker.
Reply
Ashar
13/11/2018 03:05:22 pm
so when the green flag is clicked the computer will know we are playing a game 0 to 127 game the computer will say "think of number between 0 127" the computer will keep saying a number until it figure out your number. then wen it guess your number it will say "it's " your number
Reply
Harley
13/11/2018 03:05:30 pm
first it will say lower o put 127 is upper and it will say is it more than 60 then you tip n or y and mean yes or no and it will keep on guessing until you tip y or yes it will say it's ?
Reply
Mohamoud
13/11/2018 03:06:25 pm
its but I started a little struggle
Reply
Dania
20/11/2018 03:05:25 pm
prime numbers from 1-50
Reply
## Leave a Reply. |
## Mrs KauserWrite something about yourself. No need to be fancy, just an overview. ## Archives
March 2019
## Categories |