Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP11120 Mathematical Techniques for Computer Science ()

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
01-12-2022
Written in
2022/2023

COMP11120 Mathematical Techniques for Computer Science ()

Institution
Course

Content preview

COMP11120


Two hours


Note that the last two pages contain inference rules for natural deduction



UNIVERSITY OF MANCHESTER
DEPARTMENT OF COMPUTER SCIENCE




Mathematical Techniques for Computer Science




Date: Tuesday 21st January 2020
Time: 14:00 - 16:00




Please answer all THREE Questions
Each question is worth 20 marks

Use a SEPARATE answerbook for each SECTION
© The University of Manchester, 2020



This is a CLOSED book examination

Electronic calculators may be used in accordance with the University regulations




Page 1 of 7 [PTO]

, COMP11120
Section A

1. a) Show that for all natural numbers n it is the case that n is divisible by 4 if and only
if the number given by the last two digits of n is divisible by 4. (4 marks)


b) Consider the following binary operation ~ on the set of binary strings of length
1024. For 0 ≤ i ≤ 1023, the ith symbol in s ~ s0 is

• si if i is even and
• s0i else,

where si denotes the ith symbols in s and s0i denotes the ith symbols in s0 . This
means, for example, if the string s consists exclusively of 0s and the string s0
consists exclusively of 1s then the string s ~ s0 consists of 512 repetitions of 01.

i) Is the given operation commutative? Give a reason for your answer.
(2 marks)
ii) Is this operation associative? Justify your answer. (4 marks)


c) Consider the following function.

f:Z Z
x x + (x mod 3)

Calculate the values of f for inputs from −4 to 3. Is this function injective? Is it
surjective? Justify your answers. (10 marks)




Page 2 of 7

Written for

Course

Document information

Uploaded on
December 1, 2022
Number of pages
7
Written in
2022/2023
Type
Exam (elaborations)
Contains
Answers

Subjects

$15.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
hemantyadav

Get to know the seller

Seller avatar
hemantyadav
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions