This document provides solutions for Mathematics for Computing assignments. It includes solutions for questions related to sets, functions, programs, graphs, and shortest paths.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Mathematics for Computing 1
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
4 (a) Image of 3 is 1 (b) Co-domain of f = {1, 2, 3, 4} (d) As each element of co-domain is mapped by one or two element of domain, therefore, the given function is surjective. 3
Question 2 Solution: Given – Number of programs = 10 (a) as only one program can be run at a time, where order doesn’t matter and with repetition of elements, so, using k-selection nCk=!n / k! (n-k)! Takingk = 1 10C1=!10 / 1! (10-1)! = !10 / !9 = 10 ways (b) Four programs are considered as higher in priority then – nCk= !10 / !4 !6 = 210 ways (c) Separating programs into three top priorities as – 3C1+5C1+2C1ways 4
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Question 3 (a)1 2 3 4 5 6 1F T T T F T 2T F T F T F 3T T F T T F 4T F T F F F 5F T T F F T 6T F F F T F 2 1 3 6 4 5 5
Solution A B CDEF G H So, the weighted answer of minimal spanning tree = 52 6
Question 4 Solution The present graph consists two finite sets as vertex V = {a, b, c, d, e, f, g, h} and edge E = {{ab}, {ac}, {ad}, {bc}, {be}, {be}, {bf}, {cd}, {ce}, {cf}, {de}, {gh}} (a) Graph G = be f cdgh a 7
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
(b)Graph H f bc ed hence, H is a subgroup of g with elements {{bf}, {be}, {cf}, {cd}, {de}} Graph J be cd Hence, J is also a subgraph of G with elements = {{be}, {be}, {bc}, {cd}, {de}} 8