100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Lecture Notes on Induction for the Natural Numbers and Introduction to Relations and Partial Functions (COMP11120) $11.03   Add to cart

Class notes

Lecture Notes on Induction for the Natural Numbers and Introduction to Relations and Partial Functions (COMP11120)

 6 views  0 purchase
  • Course
  • Institution

Strengthen your understanding of mathematical induction and foundational concepts in relations and partial functions with these detailed lecture notes for COMP11120. Covering topics such as the principles of induction, properties of natural numbers, and an introduction to relations and partial func...

[Show more]

Preview 1 out of 3  pages

  • May 30, 2024
  • 3
  • 2023/2024
  • Class notes
  • Andrea schalk
  • Induction for the natural numbers and introduction to relations and partial functions
  • Unknown
avatar-seller
Induction for The Natural Numbers, Introduction to Relations and Partial Functions

Recursive Definition for natural numbers : I

Can now
formally define operator Property i =
n(n n E I

aie IN
O
0 (0 + 1)
base
.




case
o = 0 7
2

base case a = [ * ai = a1
i=1 1
n+

n
-




Step case i = i +
i= 0


a
L

Step case = + an e

1)
nin n
= +
+




=
n2 + n + 2n + 2

2


S
= (n+ 1)(n + 2)
2




Functions given by recursive specifications
These arise when calculating the complexity of recursive algorithms.
, eg .,

Example : Find a functionf that satisfies base case fo = 2 Example : Find a functionf that satisfies

Step case fin + 1) =
2fn-1 base case fo = 1


base case fi = 4




-123
Step case f(n + 2) =
4fn +
3f(n + 1)
Guess >
-


fn = 2 + 1


1 24 81632 n O 1 2 3 4 5
Gress fr = yh
16 64256512
In 1 ↑



base case fo = 2

base 1
=
20 + 1 case fo =




40
2 fn
=

-1
Step case finall =




ind hyp! 4
=
2(2n + 1) -

1 base case fr =




=
24
+1
+ 2 -

1
= m

=
2n
+1
+ 1 Step case final =
4 fn + 3 f(n 1) +



= 4(yn) + 3)yn
+
1) -
ind . hyp!
+1
1)
+
= yn + 3(yn

yn 1(1 3)
+
= +


*2
=
yn




Relations
Relations are a
way of connecting elements of sets
. Example : Consider the relation R from [W ,
X
,
Y , 2) to [10 , 15 , 203 that relates

Relations between two or more sets are used in databases
w
· to 10 , 13 and 20


Crolational databases) for example to capture student records
· I to 10 and
,
with entries such as

2 to 10 and 20
(name , id number degree type degree name).
·

, ,




W 10
Notation

A relation R from a set S to set T is a subset of
Z 15

SxT , i . e . RESxT Y 20


This is sometime written as 2

R : S 1 > T

We say
in fix notation ! R is a subset
of pairs from CW ,
K
, y, 23 x 410 ,
15 , 203
(s t) E R -
Rt &(w y
or
,
R = ,
10) ,
(2 , 15) , (W , 20) , (X, 10) , (2 , 10) , (2 , 20)

or S ~t

symbol to
denote relation

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller jpxoi. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.03. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.03
  • (0)
  Add to cart