首页 > 其他 > 详细

20162314 Experiment 4 - Graph

时间:2017-11-25 00:19:23      阅读:327      评论:0      收藏:0      [点我收藏+]

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
    技术分享图片
  1. Graph implement and apply-2
    技术分享图片

3.Graph implement and apply-3
技术分享图片

Experiment situation

Exp1 Graph implement and apply-1

技术分享图片

技术分享图片

技术分享图片

  • 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

技术分享图片

技术分享图片

技术分享图片

技术分享图片

技术分享图片

  • 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

技术分享图片

技术分享图片

  • 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)

Steps Time percent
requirement 45minutes 16.7%
design 50minutes 18.5%
coding 1.5hours 32.2%
test 30minutes 11.1%
summary 55minutes 19.2%

20162314 Experiment 4 - Graph

原文:http://www.cnblogs.com/CS162314/p/7892778.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!