MATH367 Specimen Class test I C/C++

Java Python MATH367 Specimen Class test I

Problem 1:  Tree graphs and planar graphs

1.  Describe  tree   graphs  that   correspond  to  the   Prüfer  sequence  P   = (2, 3, 4,..., n−2, n−1), with n some positive integer number.  (3 points)

2. Prove that any tree graph is a planar graph (2 points) .

3. Prove that we obtain a planar graph by adding one more edge to any tree graph (without changing the number of vertices) (2 points) .

Problem 2: Eulerian and Hamiltonian graphs

1.  Construct an Eulerian trail for the following graph:  (4 points)

2. Which tree graphs are Hamiltonian graphs?  (2 points)

Problem 3:  Minimal spanning trees and shortest-distance paths

Consider the following network N :

N       consists       of      four       vertices       {s,a,b,t}       and        ve       edges {{s,a} , {s,b} , {a,t} , {b,t} , {a,b}}   with   the   weights   wt({s,a})  &nbs MATH367 Specimen Class test I C/C++ p;  =     1, wt({s,b}) = 2, wt({a,t}) = 3, wt({b,t}) = 4, wt({a,b}) = −7.

1.  List all cycles of N and their weights.  (2 points)

2.  Apply the Prim's (2 points) and the Kruskal's (2 points) algorithms to  nd the minimal spanning tree of N.  Apply Dijkstra's algorithm to   nd the shortest path between the vertices s and t  (2 points) .  If some of these algorithms are not applicable to the network N , explain why.

Problem 4:  Assignment problem

Two workers W1  and W2  are capable of performing n1  = 1 and n2  = 2 tasks, respectively.   They  need to accomplish as many tasks as possible out of the four tasks T1 , T2 , T3  and T4 .  Each task can be accomplished by one worker only. The cost of performing the task Tj  by the worker Wi  is given in the table below:

Use  a  cost    ow  network  to    nd  out  how  to  accomplish  the  maximal  pos- sible number of tasks at the least possible cost.  (7 points)  Discuss whether your assignment is unique and justify your answer         

  • 17
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值