15.08.2013 Views

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Problem 1.34: Using the abstract data type of truth functions from ??, give the defining<br />

equations <strong>for</strong> a function ι that takes three arguments, such that ι(ϕB, aN, bN) behaves like “if ϕ<br />

then a, else b”, where a <strong>and</strong> b are natural numbers.<br />

Solution: The defining equations are ι(T, aN, bN) aN <strong>and</strong> ι(F, aN, bN) bN.<br />

35<br />

15pt

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!