Tagged Questions
-4
votes
1answer
112 views
Opposite of Collatz Conjecture [closed]
How can I write (in pseudocode) a program that halts only if the Collatz Conjecture is
false ?
Here is pseudocode for the case that it is true:
function collatz(n)
while n > 1
show n
...
3
votes
1answer
165 views
Loop invariant vs Assertions
I have an exam on Programming Concepts this Saturday and I am struggling to find some information to understand some concepts better.
What is the difference between loop invariant and assertion? To ...