99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

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

時間:2023-11-13  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMP**24 23T3
Assignment
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: ./tripView
Size of network: 3HarrisPark
1
TownHall
3
NorthSydney
2
You may assume that:
**3;The input is syntactically correct.
**3;The maximum length (strlen()) of the name of a railway station is 16 and
will not use any spaces.
**3;The transfer time will be a positive integer.
**3;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: 3HarrisPark
0945
TownHall
1020
NorthSydney
1035
Number of stops: 2TownHall
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.
Each stop will be visited at most once in a single timetable.
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
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: ./tripView
Size of network: 7Ashfield
5
Central
8
HarrisPark
1
MilsonsPoint
2
NorthSydney
2
Redfern
5
TownHall
3
Number of timetables: 2
Number of stops: 5HarrisPark
0945
Ashfield
0955
Redfern
1006
TownHall
1020
NorthSydney
1035
Number of stops: 4Redfern
1359
Central
1**
TownHall
1410
MilsonsPoint
1430
From: Central
To: MilsonsPoint
Arrive at or before: 1600
1** 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
Stage 2 (5 marks)
For the next stage, your program should find and output a connection
from FromStation to ToStation that:
**3;may involve one or more train changes;
**3; arrives at ToStation no later than ArrivalTime ; and
**3; 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: ./tripView
Size of network: 6Ashfield
5
Central
8
HarrisPark
1
NorthSydney
2
Redfern
5
TownHall
3
Number of timetables: 2
Number of stops: 5HarrisPark
0945
Ashfield
0955
Redfern
1006
TownHall
1020
NorthSydney
1035
Number of stops: 3HarrisPark
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
If there is no connection that satisfies the requirements, then the output should
be: No connection.
From: HarrisPark
To: TownHall
Arrive at or before: 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: ./tripView
Size of network: 3HarrisPark
1
NorthSydney
2
TownHall
3
Number of timetables: 2
Number of stops: 3HarrisPark
0945
TownHall
1020
NorthSydney
1035
Number of stops: 2TownHall
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
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:
**24 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:
give cs**24 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:
**24 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
Do not use a publicly accessible repository or allow anyone to see your code
Code generated by GitHub Pilot, ChatGPT, Google Bard and similar tools
will be treated as plagiarism.
Please refer to the on-line sources to help you understand what plagiarism is and how
it is dealt with at UNSW:
Plagiarism and Academic Integrity
UNSW Plagiarism Policy
UNSW Plagiarism Management Procedure
Help
See FAQ for some additional hints.
Finally …
Have fun!
Reproducing, publishing, posting, distributing or translating this assignment is an
infringement of copyright and will be referred to UNSW Conduct and Integrity for
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:EECS 2101代寫、代做java編程設計
  • 下一篇:定制公式定制 通達信漲停王者系列指標公式
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                中文字幕在线一区免费| 国产一区二区三区综合| 激情综合色播五月| 91精品国产色综合久久不卡电影| 亚洲www啪成人一区二区麻豆| 911国产精品| 亚洲另类色综合网站| 日韩美女精品在线| 成人午夜视频网站| 91精品黄色片免费大全| 一区二区视频免费在线观看| 国产精品99久久久久久久女警| 日韩欧美综合一区| 日韩电影免费在线看| 精品少妇一区二区三区视频免付费| 午夜精品久久久久久| 欧美最猛性xxxxx直播| 亚洲成人一区在线| 在线不卡免费av| 99re视频这里只有精品| 日韩黄色在线观看| 精品国产sm最大网站| 欧洲一区在线观看| 老司机一区二区| 自拍av一区二区三区| 4438x亚洲最大成人网| 午夜日韩在线电影| 亚洲六月丁香色婷婷综合久久| 欧美日本在线看| 国产一区二区不卡老阿姨| 国产午夜精品一区二区| 色综合网站在线| 欧美96一区二区免费视频| 欧美三级视频在线播放| 亚洲素人一区二区| 国产欧美精品区一区二区三区| 久久蜜桃一区二区| 欧美不卡一区二区三区四区| 欧美疯狂做受xxxx富婆| 欧美色电影在线| 色婷婷久久久亚洲一区二区三区| 国产高清在线观看免费不卡| 久草这里只有精品视频| 天天色图综合网| 精品国产91乱码一区二区三区| 久久er99热精品一区二区| 久久69国产一区二区蜜臀| 久久精品国产精品亚洲红杏 | 久久成人免费日本黄色| 午夜欧美大尺度福利影院在线看 | 国产亚洲一二三区| 欧美刺激午夜性久久久久久久| 欧美大肚乱孕交hd孕妇| 欧美一区二区三区婷婷月色| 日韩一区二区免费视频| 精品动漫一区二区三区在线观看| 中文字幕一区三区| 亚洲精品视频免费看| 亚洲综合色丁香婷婷六月图片| 中文字幕亚洲一区二区av在线| 日韩高清电影一区| 国产成人综合在线| 色综合天天综合色综合av| 在线成人av网站| 国产三级一区二区| 亚洲第一成年网| 国产乱子伦视频一区二区三区| caoporen国产精品视频| 91精彩视频在线| 在线综合视频播放| 中文字幕 久热精品 视频在线| 亚洲一区二区av在线| 精品一区二区国语对白| av在线不卡网| 国产日韩影视精品| 国产成人在线观看| 日韩写真欧美这视频| 亚洲免费在线播放| 秋霞午夜鲁丝一区二区老狼| 一本大道av伊人久久综合| 欧美日韩不卡一区二区| 国产清纯在线一区二区www| 久久无码av三级| 蜜臀av性久久久久蜜臀av麻豆| 欧美日韩mp4| 亚洲欧美一区二区三区孕妇| 国产高清精品网站| 一区二区三区高清不卡| 欧美性做爰猛烈叫床潮| 国产免费成人在线视频| 国产一区二区视频在线| 精品欧美乱码久久久久久1区2区| 毛片一区二区三区| 337p日本欧洲亚洲大胆精品| 成人综合在线观看| 日韩精品成人一区二区在线| 日韩一区二区在线看| 国产资源在线一区| 欧美国产精品久久| 精品日本一线二线三线不卡| 国产精品性做久久久久久| 亚洲免费电影在线| 精品国产成人系列| 99re免费视频精品全部| 亚洲国产精品一区二区www| 91福利区一区二区三区| 国产福利一区二区三区视频| 亚洲一二三区在线观看| 国产一区二区调教| 丝袜国产日韩另类美女| 亚洲欧洲韩国日本视频| 欧美成人国产一区二区| 91热门视频在线观看| 国产一区二区看久久| 五月婷婷久久丁香| 中文欧美字幕免费| 国产亚洲欧美激情| 久久综合九色综合97_久久久| 99国产精品一区| 国产综合色在线视频区| 蜜桃视频在线观看一区二区| 日本麻豆一区二区三区视频| 国产精品视频麻豆| 亚洲精品水蜜桃| 五月综合激情网| 蜜臀av一区二区在线免费观看| 欧美在线免费观看亚洲| 久久精工是国产品牌吗| 国产剧情一区在线| 亚洲永久免费视频| 94-欧美-setu| 26uuu成人网一区二区三区| 久久久久亚洲蜜桃| 国产成人午夜精品影院观看视频 | 日本欧美在线观看| 日韩欧美一级二级| 日韩午夜在线播放| 精品一区二区国语对白| 国产91精品精华液一区二区三区| 久久精品国产**网站演员| 丰满放荡岳乱妇91ww| 欧美日韩成人一区二区| 国产日韩影视精品| 久久精品久久久精品美女| 成人精品国产免费网站| 在线综合亚洲欧美在线视频| 精品国产91久久久久久久妲己 | 久草精品在线观看| 久久久激情视频| 91行情网站电视在线观看高清版| 精品久久久久久久人人人人传媒 | wwww国产精品欧美| 视频一区二区国产| 国产精品99久久久久久久vr| 欧美剧情片在线观看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 日韩精品91亚洲二区在线观看| 国产夫妻精品视频| xfplay精品久久| 视频在线观看一区| 在线免费视频一区二区| 亚洲精品美腿丝袜| 精品1区2区3区| 日韩成人精品在线观看| 91网站最新地址| 亚洲最新视频在线观看| 欧美在线看片a免费观看| 亚洲免费观看高清完整| 99久久婷婷国产精品综合| 国产欧美va欧美不卡在线| 中文字幕亚洲精品在线观看| 国产欧美视频在线观看| 色先锋资源久久综合| 蜜桃视频一区二区| 欧美国产精品v| 国产成人综合精品三级| 欧美一区二区三区日韩视频| 国产一区二区女| 黄网站免费久久| 亚洲国产成人高清精品| 国产精品女主播av| 国产欧美一区二区三区沐欲| 欧美日韩一区三区| 麻豆91精品视频| 天天操天天色综合| 91国产视频在线观看| 综合激情成人伊人| 欧美三级视频在线观看| 成人自拍视频在线观看| 国产精品一区二区久久不卡| 三级一区在线视频先锋| 亚洲va欧美va国产va天堂影院| 久久99精品久久只有精品| 26uuu国产日韩综合| 麻豆精品在线看| 自拍av一区二区三区| 一本久道久久综合中文字幕| 日本成人在线视频网站| 亚洲免费av高清| 日韩视频免费直播|