美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

代做COMP9024、代寫c/c++編程設(shè)計

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


代做COMP9024、代寫c/c++編程設(shè)計
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

標(biāo)簽:

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    日本高清不卡免费| 无码人中文字幕| 精产国品一区二区三区| 国产精品久久国产精麻豆96堂| 女人黄色一级片| 女性裸体视频网站| 国产这里有精品| 在线中文字日产幕| 五月婷婷综合在线观看| 成年人免费观看视频网站| 摸摸摸bbb毛毛毛片| 四虎永久免费在线| 亚洲中文字幕一区| 色噜噜噜噜噜噜| 男人添女人荫蒂国产| theav精尽人亡av| 午夜剧场免费在线观看| 国产精品无码自拍| 亚洲色图日韩精品| 人妻激情偷乱频一区二区三区| xxxx日本免费| 亚洲精品久久久久久| 丰满少妇在线观看资源站| 日韩激情小视频| 我和岳m愉情xxxⅹ视频| 亚洲欧美精品aaaaaa片| 极品粉嫩小仙女高潮喷水久久| www.99热| 超碰97在线资源站| 中文字幕一二三区| 5566中文字幕| 亚洲成人黄色av| 给我免费观看片在线电影的| 欧美做爰爽爽爽爽爽爽| 三区四区在线观看| 国产色视频一区二区三区qq号| 亚洲国产123| 91香蕉国产视频| 日本美女bbw| 国产免费无遮挡吸奶头视频| 久久久久久久穴| 99精品久久久久| 成人涩涩小片视频日本| 激情高潮到大叫狂喷水| 免费黄色片网站| 国产精品扒开腿做爽爽| www.88av| 国产特级黄色录像| 欧美色图亚洲激情| 日本aaa视频| 美女又爽又黄视频毛茸茸| 亚洲精品第二页| 男男做爰猛烈叫床爽爽小说| 亚洲av成人片色在线观看高潮| 荫蒂被男人添免费视频| xxxx黄色片| 五月天综合视频| 少妇视频一区二区| 神马午夜精品91| 秋霞午夜鲁丝一区二区| 丰满人妻一区二区三区免费视频棣| 激情小说欧美色图| 日本黄色动态图| 精品无码国产污污污免费网站 | 国产又粗又长又黄的视频| 国产真实乱人偷精品人妻| 成人在线手机视频| 男人的午夜天堂| 麻豆精品国产传媒| 黄色网址在线视频| 国产精久久一区二区三区| 欧美色视频一区二区三区在线观看| 国产美女久久久久久| 麻豆短视频在线观看| 国产中文字幕一区二区| 国产无遮挡在线观看| 国产女人被狂躁到高潮小说| 日本黄色动态图| 日本一级片免费| 国产精品无码在线| 久久久精品少妇| 亚洲第一页av| 91精品国产闺蜜国产在线闺蜜| av免费观看不卡| 欧美激情久久久久久久| 日批视频免费看| 青娱乐国产视频| 中文字幕人妻熟女人妻a片| 国产精品无码一区二区三| 久久久久久久久久97| 一本色道综合久久欧美日韩精品| 强制高潮抽搐sm调教高h| 亚洲色图欧美日韩| 91嫩草|国产丨精品入口| aa一级黄色片| 久久精品女同亚洲女同13| 欧美激情视频二区| 六月婷婷七月丁香| 国产伦精品一区二区三区88av| 精品人体无码一区二区三区| 亚洲国产综合视频| 精品国产午夜福利在线观看| 精品一区二区在线观看视频| 无码国产69精品久久久久同性| 岛国av免费观看| 国产伦精品一区二区三区88av| 中文字幕av播放| 天天做夜夜爱爱爱| 亚洲AV成人无码精电影在线| 久久精品—区二区三区舞蹈| 真实乱视频国产免费观看| 特大黑人巨人吊xxxx| 人妻av一区二区| 美女伦理水蜜桃4| 一区二区免费在线观看视频| 国产精品久久久久久在线观看| www青青草原| 苍井空张开腿实干12次| 91成人在线观看喷潮蘑菇| 国产成人精品综合久久久久99 | 你懂得视频在线观看| 在线小视频你懂的| 一本色道久久88| 97在线观看免费高| 26uuu国产| 粉嫩av蜜桃av蜜臀av| 成人黄色免费网址| 91麻豆精品成人一区二区| 午夜免费激情视频| av2014天堂网| 国产91丝袜美女在线播放| 成人在线观看高清| 精品人妻在线视频| 国产sm调教视频| 顶臀精品视频www| 麻豆国产精品一区| 天海翼在线视频| 国产高潮失禁喷水爽到抽搐 | www久久久久久久| 日韩三级在线观看视频| 久草视频福利在线| 国精产品视频一二二区| 色欲一区二区三区精品a片| 日本黄色录像片| 国产极品国产极品| 黄色性生活一级片| 日韩女优一区二区| 手机看片福利视频| 精品国产人妻一区二区三区| 国产精品一区二区亚洲| 国产视频精品视频| 少妇被躁爽到高潮无码文| 在线观看日韩精品视频| 国产a级黄色片| 国产女人18水真多毛片18精品| 艳妇乳肉亭妇荡乳av| 久久高清内射无套| 天天舔天天操天天干| aaaaa一级片| 艳妇乳肉豪妇荡乳xxx| 日韩黄色免费观看| 天堂а√在线中文在线鲁大师| 一级做a爰片毛片| 日本人添下边视频免费| 伦伦影院午夜理论片| 黄色录像免费观看| 国产一区二区三区四区在线| 中文字幕一区二区三区人妻| 无码成人精品区在线观看| 欧美色图亚洲视频| 亚洲av无码一区二区三区在线| 香蕉久久久久久久| 天堂资源在线视频| 中文字幕第二区| 日韩一卡二卡在线观看| www.涩涩爱| 精品国产视频一区二区三区| 亚洲精品国产精品乱码在线观看| 成人性生交大免费看| 人妻熟女aⅴ一区二区三区汇编| a级片在线观看视频| 亚洲激情 欧美| 免费的av网站| 中文幕无线码中文字蜜桃| 一级性生活大片| 中文字幕第69页| 国产精品免费人成网站酒店| 免费在线观看一级片| 伊人久久久久久久久| 亚洲色图14p| 亚洲女同二女同志奶水| 国产精品成人免费观看| 三级男人添奶爽爽爽视频| 中国毛片在线观看| 精品无码一区二区三区蜜臀| 稀缺小u女呦精品呦| 制服 丝袜 综合 日韩 欧美| 国产精品成人69xxx免费视频| 中文字幕一二三区| b站大片免费直播|