Proof of correctness for algorithms

preview_player
Показать описание
Pencast for the course Reasoning & Logic offered at Delft University of Technology.

Accompanies the open textbook: Delftse Foundations of Computation.
Рекомендации по теме
Комментарии
Автор

Can you reupload the videos with the sound a little bit higher?

cosminanton
Автор

cant even see what you are writing lol

Soulmiddes
Автор

Sure, I would have loved to see values for the variables, or at least seen where ‘a’ originates. But I did in fact learn how to make a simple proof.

Boneplayer
Автор

This algorithm will only work for m>=0 and m would have to be an integer. So this algorithm does not produce m*a in the general case

seekanddestroyNL
Автор

Very clear explanation thank you for the help!

davidrahabi
Автор

in algorithm r=r+a how come it changed to r=i.a ?

rahulankamreddi
Автор

how to proof correctness of this algorithm:
function increment(y)
comment Return y + 1, where y in N
x := 0; c:= 1; d:= 1;
while (y > 0) V (c > 0) do
a :=y mod 2;
if a XOR c then x=x+d;
c:= a AND c;
d:= 2d; y := [y/2] :
return(x)

jbipmni