100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

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

Rating
-
Sold
-
Pages
3
Uploaded on
30-05-2024
Written in
2023/2024

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 functions, these notes provide clear explanations and practical examples. Perfect for students taking COMP11120 or those seeking to expand their knowledge independently, these notes offer structured content and illustrative examples to help you master these essential topics. Enhance your study routine and excel in your coursework with this invaluable resource!

Show more Read less








Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
May 30, 2024
Number of pages
3
Written in
2023/2024
Type
Lecture notes
Professor(s)
Andrea schalk
Contains
Induction for the natural numbers and introduction to relations and partial functions

Content preview

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
£8.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
jpxoi

Also available in package deal

Thumbnail
Package deal
Complete Semester 2 Lecture Notes Bundle
-
8 2024
£ 49.92 More info

Get to know the seller

Seller avatar
jpxoi The University of Manchester
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
20
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions