免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300

代做COMP9024、代寫c/c++編程設計

時間:2023-11-03  來源:  作者: 我要糾錯


代做COMP9024、代寫c/c++編程設計
COMP9024 23T3
TripView
Change Log
We may make minor changes to the spec to address/clarify some outstanding issues. These may
require minimal changes in your design/code, if at all. Students are strongly encouraged to check the
change log regularly.
Version 1: Released on 20 October 2023
Objectives
The assignment aims to give you more independent, self-directed practice with
advanced data structures, especially graphs
graph algorithms
asymptotic runtime analysis
Admin
Marks 3 marks for stage 1 (correctness)
5 marks for stage 2 (correctness)
2 marks for stage 3 (correctness)
1 mark for complexity analysis
1 mark for style
———————
Total: 12 marks
Due 5:00:00pm on Monday 13 November (week 10)
Late 5% penalty per day late
(e.g. if you are 25 hours late, your mark will be reduced by 10%)
Aim
The objective is to write a program tripView.c that generates an optimal trip on (a part of) Sydney's
railway network based on user preferences.
Input
Railway stations
The first input to your program consists of an integer n > 0, indicating the number of railway stations on
the network, followed by n*2 lines of the form:
railway-station
transfer-time
where the first line is the name of a station and the second line denotes the time – in minutes – it takes
to transfer to a different train at that station.
Here is an example:
prompt$ ./tripView
Size of network: 3
HarrisPark
1
TownHall
3
NorthSydney
2
You may assume that:
The input is syntactically correct.
The maximum length (strlen()) of the name of a railway station is 16 and will not use any
spaces.
The transfer time will be a positive integer.
No name will be input more than once.
Hint:
To read a single line with a station name you should use:
scanf("%s", name);
where name is a string, i.e. an array of chars.
Timetables
The next input to your program is an integer m > 0, indicating the number of trains on any day, followed
by m timetables. Each timetable starts with the number s > 1 of stops followed by s*2 lines of the form:
station
hhmm
meaning that you can get on or off the train at that station at the given time (hh – hour, mm – minute).
Here is an example:
Number of timetables: 2
Number of stops: 3
HarrisPark
0945
TownHall
1020
NorthSydney
1035
Number of stops: 2
TownHall
1024
NorthSydney
1033
You may assume that:
The input is syntactically correct.
All times are given as 4 digits and are valid, ranging from 0000 to 2359.
Only train stations that have been input earlier as part of the network will be used.
The stops are input in the correct temporal order.
All trains reach their final stop before midnight.
Trip View
The final input to your program are user queries:
From: HarrisPark
To: NorthSydney
Arrive at or before: 1200
As before, you may assume that the input is correct: Two different valid railway stations followed by a
valid time in the form of 4 digits.
Your program should terminate when the user enters "done" when prompted with From:
From: done
Bye
prompt$
Stage 1 (3 marks)
Stage 1 requires you to generate a suitable data structure from the input.
Test cases for this stage will only use queries FromStation, ToStation, ArrivalTime such
that:
there exists one, and only one, train that travels from FromStation to ToStation ;
this train arrives on, or before, the given ArrivalTime ; and
this train is the desired output for the query.
Therefore, at this stage all you need to do is find and output the connection between the two train
stations, including all the stops along the way and the arrival/departure times.
Here is an example to demonstrate the expected behaviour of your program for a stage 1 test:
prompt$ ./tripView
Size of network: 7
Ashfield
5
Central
8
HarrisPark
1
MilsonsPoint
2
NorthSydney
2
Redfern
5
TownHall
3
Number of timetables: 2
Number of stops: 5
HarrisPark
0945
Ashfield
0955
Redfern
1006
TownHall
1020
NorthSydney
1035
Number of stops: 4
Redfern
1359
Central
1406
TownHall
1410
MilsonsPoint
1430
From: Central
To: MilsonsPoint
Arrive at or before: 1600
1406 Central
1410 TownHall
1430 MilsonsPoint
From: Ashfield
To: NorthSydney
Arrive at or before: 1040
0955 Ashfield
1006 Redfern
1020 TownHall
1035 NorthSydney
From: done
Bye
prompt$
Stage 2 (5 marks)
For the next stage, your program should find and output a connection from FromStation to
ToStation that:
may involve one or more train changes;
arrives at ToStation no later than ArrivalTime ; and
leaves as late as possible.
Note that you can get onto a different train at any station, but it is necessary to take into account the
time it takes to change trains at that station.
In all test scenarios for this stage there will be at most one connection that satisfies all requirements.
Here is an example to demonstrate the expected behaviour of your program for stage 2:
prompt$ ./tripView
Size of network: 6
Ashfield
5
Central
8
HarrisPark
1
NorthSydney
2
Redfern
5
TownHall
3
Number of timetables: 2
Number of stops: 5
HarrisPark
0945
Ashfield
0955
Redfern
1006
TownHall
1020
NorthSydney
1035
Number of stops: 3
HarrisPark
0950
Central
1010
TownHall
1017
From: HarrisPark
To: NorthSydney
Arrive at or before: 1040
0950 HarrisPark
1010 Central
1017 TownHall
Change at TownHall
1020 TownHall
1035 NorthSydney
From: done
Bye
prompt$
If there is no connection that satisfies the requirements, then the output should be: No
connection.
From: HarrisPark
To: TownHall
Arrive by: 1015
No connection.
Stage 3 (2 marks)
For the final stage, if there are multiple possible connections with the same latest departure time, your
program should take into account the additional user preference that:
among all the connections with the latest possible departure time, choose the one with the
shortest overall travel time.
You may assume that there will never be more than one connection with the latest possible departure
time and the shortest overall travel time. Note also that travel time includes the time it takes to change
trains and the waiting time if applicable.
Here is an example to demonstrate the expected behaviour of your program for stage 3:
prompt$ ./tripView
Size of network: 3
HarrisPark
1
NorthSydney
2
TownHall
3
Number of timetables: 2
Number of stops: 3
HarrisPark
0945
TownHall
1020
NorthSydney
1035
Number of stops: 2
TownHall
1024
NorthSydney
1033
From: HarrisPark
To: NorthSydney
Arrive at or before: 1040
0945 HarrisPark
1020 TownHall
Change at TownHall
1024 TownHall
1033 NorthSydney
From: done
Bye
prompt$
Complexity Analysis (1 mark)
You should include a time complexity analysis for the asymptotic worst-case running time of your
program, in Big-Oh notation, depending on the size of the input:
1. the size of the network, n
2. the number of timetables, m
3. the maximum number of stops on any one timetable, s.
Hints
If you find any of the following ADTs from the lectures useful, then you can, and indeed are encouraged
to, use them with your program:
linked list ADT : list.h, list.c
stack ADT : stack.h, stack.c
queue ADT : queue.h, queue.c
priority queue ADT : PQueue.h, PQueue.c
graph ADT : Graph.h, Graph.c
weighted graph ADT : WGraph.h, WGraph.c
You are free to modify any of the six ADTs for the purpose of the assignment (but without
changing the file names). If your program is using one or more of these ADTs, you should submit both
the header and implementation file, even if you have not changed them.
Your main program file tripView.c should start with a comment: /* … */ that contains the time
complexity of your program in Big-Oh notation, together with a short explanation.
Testing
We have created a script that can automatically test your program. To run this test you can execute the
dryrun program that corresponds to this assignment. It expects to find, in the current directory, the
program tripView.c and any of the admissible ADTs
(Graph,WGraph,stack,queue,PQueue,list) that your program is using, even if you use them
unchanged. You can use dryrun as follows:
prompt$ 9024 dryrun tripView
Please note: Passing dryrun does not guarantee that your program is correct. You should thoroughly
test your program with your own test cases.
Submit
For this project you will need to submit a file named tripView.c and, optionally, any of the ADTs
named Graph,WGraph,stack,queue,PQueue,list that your program is using, even if you
have not changed them. You can either submit through WebCMS3 or use a command line. For
example, if your program uses the Graph ADT and the queue ADT, then you should submit:
prompt$ give cs9024 assn tripView.c Graph.h Graph.c queue.h queue.c
Do not forget to add the time complexity to your main source code file tripView.c.
You can submit as many times as you like — later submissions will overwrite earlier ones. You can
check that your submission has been received on WebCMS3 or by using the following command:
prompt$ 9024 classrun -check assn
Marking
This project will be marked on functionality in the first instance, so it is very important that the output of
your program be exactly correct as shown in the examples above. Submissions which score very low
on the automarking will be looked at by a human and may receive a few marks, provided the code is
well-structured and commented.
Programs that generate compilation errors will receive a very low mark, no matter what other virtues
they may have. In general, a program that attempts a substantial part of the job and does that part
correctly will receive more marks than one attempting to do the entire job but with many errors.
Style considerations include:
Readability
Structured programming
Good commenting
Plagiarism
Group submissions will not be allowed. Your programs must be entirely your own work. Plagiarism
detection software will be used to compare all submissions pairwise (including submissions for similar
assessments in previous years, if applicable) and serious penalties will be applied, including an entry on
UNSW's plagiarism register.
You are not permitted to use code generated with the help of automatic tools such as GitHub Pilot,
ChatGPT, Google Bard.
Do not copy ideas or code from others
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代寫CE4703、C++設計編程代做
  • 下一篇:代寫指標公式 代做指標 通達信高盈虧比高指標
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300
    一本大道久久a久久综合| 北条麻妃一区二区三区| 激情五月激情综合网| 顶级嫩模精品视频在线看| 欧美精品久久99久久在免费线| 久久久91精品国产一区二区三区| 亚洲综合免费观看高清在线观看| 免费看日韩a级影片| 99久久久精品| 亚洲精品一线二线三线| 亚洲专区一二三| 国产jizzjizz一区二区| 在线不卡a资源高清| 亚洲视频在线观看一区| 国产专区欧美精品| 欧美精品久久一区| 亚洲综合一区二区三区| 东方aⅴ免费观看久久av| 日韩午夜在线观看| 亚洲午夜免费视频| 97se狠狠狠综合亚洲狠狠| 精品久久久久av影院| 亚洲一级电影视频| 99久久99久久免费精品蜜臀| 2020国产精品| 久久爱www久久做| 欧美日韩视频在线观看一区二区三区 | 国产精品卡一卡二| 国产精品伊人色| 制服丝袜亚洲网站| 午夜精品福利一区二区蜜股av| eeuss鲁片一区二区三区在线看 | 日本中文一区二区三区| 欧美日韩精品久久久| 中文字幕亚洲精品在线观看| 国产成人精品免费一区二区| 精品久久久久久最新网址| 麻豆精品一区二区三区| 欧美视频一区二区三区| 亚洲一区二区三区四区中文字幕 | 日韩一区二区高清| 天天色综合天天| 精品视频一区三区九区| 亚洲男同1069视频| 日本韩国欧美在线| 中文字幕在线视频一区| 99久久国产综合精品女不卡 | 国产成人精品免费视频网站| 欧美成人综合网站| 免费观看久久久4p| 91精品国产乱码久久蜜臀| 亚洲成人www| 在线不卡免费av| 视频一区二区三区中文字幕| 67194成人在线观看| 午夜精品久久久久影视| 日韩一区二区中文字幕| 视频一区二区三区中文字幕| 欧美乱妇20p| 奇米777欧美一区二区| 欧美一区二区视频在线观看2020 | 国产精品三级久久久久三级| 波多野结衣视频一区| 91九色02白丝porn| 日韩在线播放一区二区| 欧美人动与zoxxxx乱| 日韩电影免费在线观看网站| 日韩精品在线一区二区| 激情五月激情综合网| 中文在线一区二区| www.日韩av| 亚洲国产精品久久久久婷婷884 | 日韩av一区二区在线影视| 精品免费一区二区三区| 久久99精品久久久久久| 国产日韩欧美综合一区| 北条麻妃国产九九精品视频| 亚洲主播在线观看| 51精品久久久久久久蜜臀| 国产米奇在线777精品观看| 国产欧美一区二区三区鸳鸯浴| 9人人澡人人爽人人精品| 亚洲免费电影在线| 欧美一区二区视频观看视频| 精品影视av免费| 中文字幕一区二区不卡| 欧美三级电影网| 寂寞少妇一区二区三区| 日韩美女视频一区| 欧美二区三区91| 国产乱子轮精品视频| 亚洲精品v日韩精品| 欧美电影精品一区二区| 97精品久久久午夜一区二区三区 | 国产精品一区二区果冻传媒| 亚洲精品国产一区二区精华液| 欧美一卡在线观看| 波多野结衣视频一区| 日韩高清一区二区| 中文字幕中文字幕中文字幕亚洲无线| 欧美丰满少妇xxxxx高潮对白| 国产sm精品调教视频网站| 亚洲国产精品尤物yw在线观看| 欧美精品一区二区三区四区| 91久久香蕉国产日韩欧美9色| 久久av资源站| 亚洲自拍偷拍欧美| 国产日产欧美一区| 91精品国产综合久久精品| 波多野结衣亚洲一区| 欧美日韩国产高清一区二区| 久草在线在线精品观看| 一区二区三区免费| 26uuu国产电影一区二区| 欧洲人成人精品| 高清av一区二区| 蜜臀久久99精品久久久画质超高清 | 这里只有精品免费| 91热门视频在线观看| 久久99精品久久久久久| 亚洲一区在线视频观看| 中文字幕成人av| 欧美成人a在线| 欧美日韩另类国产亚洲欧美一级| 成人黄色av电影| 经典三级一区二区| 日韩中文字幕亚洲一区二区va在线| 最新久久zyz资源站| 久久久噜噜噜久久人人看 | 国产午夜精品理论片a级大结局| 欧美高清激情brazzers| 色哟哟亚洲精品| 成人爽a毛片一区二区免费| 麻豆国产欧美日韩综合精品二区 | 91黄色免费看| 99久久久国产精品免费蜜臀| 国产一区二区伦理| 日本成人在线电影网| 夜夜夜精品看看| 亚洲色图在线看| 国产精品女人毛片| 久久蜜桃一区二区| 日韩精品一区二区三区视频播放 | 一区二区三区小说| 亚洲婷婷综合色高清在线| 国产亚洲精品精华液| 欧美r级电影在线观看| 欧美一区二区在线免费播放| 欧美色图在线观看| 色欧美乱欧美15图片| 99久久er热在这里只有精品15| 国产成人鲁色资源国产91色综 | 欧美日韩亚洲综合在线| 国产网站一区二区三区| 精品国产免费视频| 日韩欧美中文字幕一区| 4438成人网| 91精品欧美久久久久久动漫 | 久久欧美一区二区| 精品久久久久久久久久久久久久久久久 | 不卡一区在线观看| 高清shemale亚洲人妖| 国产精品白丝jk黑袜喷水| 国内不卡的二区三区中文字幕| 久久国产精品一区二区| 免费的成人av| 久久机这里只有精品| 久久电影网站中文字幕| 久久99久国产精品黄毛片色诱| 美女久久久精品| 激情伊人五月天久久综合| 国产自产高清不卡| 国产sm精品调教视频网站| 国产91在线观看| 成人免费视频免费观看| 成人性生交大片免费看视频在线| 成人综合日日夜夜| 99久久久久久| 在线日韩一区二区| 欧美日韩精品欧美日韩精品一综合| 欧美日韩中文字幕一区| 4438x成人网最大色成网站| 制服丝袜中文字幕一区| 日韩精品中文字幕在线一区| 久久综合九色欧美综合狠狠 | 日韩福利电影在线| 精品一区二区国语对白| 国产成人亚洲精品狼色在线| 成人性生交大片免费看中文网站| 99久久精品国产一区二区三区 | 中文字幕中文在线不卡住| 亚洲蜜桃精久久久久久久| 亚洲成人1区2区| 蜜臂av日日欢夜夜爽一区| 国产最新精品精品你懂的| 成人毛片视频在线观看| 91久久免费观看| 欧美一区二区成人6969| 久久精品亚洲乱码伦伦中文| 国产精品白丝在线|