1

  1. No, as cannot be found from .
title: Correct answers.
  1. Basis step: Recursive step: If , then .
title: Taken from TA's solution.

2

  1. Let
title: Correct answer.
  1. Let
title: Should use integer not natural.

3

SetPartial orderLinear orderEquivalence relation
a
b
c
d
e✅*

* is also a linear order, consider the Hasse diagram.

Answers were originally correct.

digraph A {
	subgraph cluster_test {
		label="A"
		0->0
		1
		2->2
		3->3
	}
}
 
digraph B {
	subgraph cluster_test {
		label="B"
		0->0
		1->1
		2->0,2,3
		3->3
	}
}
 
digraph C {
	subgraph cluster_test {
		label="C"
		0->0
		1->1,2
		2->2,3
		3->3
	}
}
 
digraph D {
	subgraph cluster_test {
		label="D"
		0->0,1
		1->0,1
		2->2,3
		3->2,3
	}
}
 
digraph E {
	subgraph cluster_test {
		label="E"
		0->0,1,2,3
		1->1,2,3
		2->2,3
		3->3
	}
}
title: Make sure to consider whole set.
 
Original answer for $a$ was all true, when it is actually all false.
Graph $A$, as below, given the set $\{0,1,2,3\}$ is incorrect.
 
```graphviz
digraph A {
	subgraph cluster_test {
		label="A"
		0->0
		2->2
		3->3
	}
}
 
digraph B {
	subgraph cluster_test {
		label="B"
		0->0
		1
		2->2
		3->3
	}
}
title: Hasse diagram for $E$
 
```graphviz
graph E {
	subgraph cluster_test {
		label="E"
		3--2
		2--1
		1--0
	}
}
 
digraph E {
	subgraph cluster_test {
		label="E*"
		0->0,1,2,3
		1->1,2,3
		2->2,3
		3->3
	}
}

4

digraph R {
	label = "R"
	1->3,4
	2->4
	3->2
	4->1
}
 
digraph S {
	label = "R*"
	1->1,2,3,4
	2->1,2,3,4
	3->1,2,3,4
	4->1,2,3,4
}

Hence our output is:

title: Correct answer.

5

  1. One-to-one as all values in the domain map to a unique value in the codomain. Onto as the entire codomain is mapped back to the domain.

    title: Correct answer.
  2. Not one-to-one: multiple values in the domain map to one value in the codomain, such as . Not onto: as not the entire codomain is mapped to the domain, the range is .

    title: Correct answer.

6

Let and be functions defined by:

Describe the compositions of:

title: Correct answers.