20162314 Experiment 4 - Graph

Experiment report of Besti

course:《Program Design & Data Structures》
Class: 1623

Student Name: Wang, Yixiao

Student Number:20162314

Tutor:Mr.Lou、Mr.Wang

Experiment date:2017.11.19

Secret level: Unsecretive

Experiment time:60 minutes

Major/Elective:Major
Experiment order:4

Experiment content

  1. Graph implement and apply-1
    1062769-20171124233544968-1237102098.png
  1. Graph implement and apply-2
    1062769-20171124233613593-1242074191.png

3.Graph implement and apply-3
1062769-20171124233629890-2063228912.png

Experiment situation

Exp1 Graph implement and apply-1

1062769-20171124233854390-912997316.png

1062769-20171124233926578-1312535433.png

1062769-20171124233932625-1015903098.png

  • It's easy to finish this experiment.
  • To start with , import to form a new LinkedBinaryTree to start the experiment.
  • Next , use the method GetRight GetLeft to ealuation.
  • Then , new element "ABC".
  • Last , Assert.assertequals();

Exp2 Graph implement and apply-2

1062769-20171124234005468-1011317921.png

1062769-20171124234014546-404613328.png

1062769-20171124234044109-865009284.png

1062769-20171124234051531-1728377015.png

1062769-20171124234106015-1888757517.png

  • To start with , use the number to replace "A B C D ....."
  • Next , new newNode
  • Then, creat BinTree to get left child and right child
  • Use three methods preOrderTraverse,inOrderTraverse,postOrderTraverse.

Exp3 Graph implement and apply-3

1062769-20171124234119109-830483785.png

1062769-20171124234132500-1954467525.png

  • To start with , creat a class TwentyQuestionsPlayer
  • String the Questions and the answers as the order
  • New them
  • Write a method play(),Yes =Y , No=N .
  • Next , write a function to finish this experiment.

Code hosting

PSP5.1(Personal Software Process)

StepsTimepercent
requirement45minutes16.7%
design50minutes18.5%
coding1.5hours32.2%
test30minutes11.1%
summary55minutes19.2%

转载于:https://www.cnblogs.com/CS162314/p/7892778.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值