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

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

CCIT4016代做、代寫Python設計編程
CCIT4016代做、代寫Python設計編程

時間:2025-02-26  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Introduction to Data Structures and Algorithms (IDSA, CCIT4016) 
HKU SPACE Community College, 2024-2025, Semester 2 
Assignment 1 (A1)
(15%) 
(Total Marks: 30) 
o Finish this work, based on concepts and techniques learnt in our course. 
o Students should finish reviewing the related course notes and materials, before doing this assignment. 
o Individual work: FINISH THIS WORK ALONE. Student cannot work with others. 
* Plagiarism / Collusion / Shared work with others are not allowed. Zero mark will be given, with 
possible disciplinary action. 
o Students are responsible for ensuring that their files are submitted successfully and properly to SOUL. It 
is recommended to download submitted files for self-check before the deadline. Improper file 
submissions, such as damaged or wrongly sent files, will not be processed or notified by any means. 
o Late Submission is Not Accepted. Zero Mark will be Given. Students should well-plan their time and 
schedule. Finish and submit the assignment well before the deadline. 
o Questions related to program codes are based on Python programming language, unless specified.
o Follow given instructions and guidelines. 
Section A, A1A (10 marks)
Multiple Choice (MC) and Matching Questions, Online (SOUL-Quiz Feature) 
o Identify and select the option of choice that "best" completes the statement, matches the item, or 
answers the question. 
o Number of Attempts Allowed: 2 
o Grading method: Highest Grade 
o Make sure you have successfully completed, "Finished" and submitted before deadline. 
* Attempts must be submitted before time expires, or they are NOT counted. (Zero mark given)
o 5 MC questions and 5 Matching questions. Each question carries the same mark. 
Section B, A1B (20 marks): Programming Tasks
* IMPORTANT: 
o Source code *.py file must start with comments, including the information of individual student 
(student name, student id) as example below, unless specified. E.g. below 
o Modify the given Main testing file M*.py file (if any) to display the information of individual student 
(student name, student id) as example below, unless specified. E.g. below 
=== A1B1, Rectangle Program, by <CHAN Siu Ming> <20004016> === 
... 
...
# A1B1.py, for IDSA A1 
# FINISHED by: <CHAN Siu Ming>, <20004016> 
class Rectangle: # define the class of Rectangle
2 / 5
General requirements (unless further specified): 
o Students should handle special cases, for examples: empty list, one-element list, etc. 
o Proper brief comments are required, at least at the top of each source code file. 
o Proper indentations are required in writing program codes. 
o All related files (including *.py) should be working in the same folder.
o Python list is mainly used to hold data elements as an array in our course and this assessment. 
DO NOT use methods of Python’s list (such as list.append() or list.insert() etc.), 
inheritance in OOP, or other non-taught approaches in our course, unless specified.
Given Materials: 
o This assignment document. 
o Python files A1B1.py and A1B2.py: to be modified and completed by student. 
o Also modify top comments for your STUDENT INFO. 
o DO NOT modify the given portions unless specified, including the given methods if any. 
o Python files MA1B1.py and MA1B2.py: the main files for basic running and testing. 
o DO NOT modify these given main test files, except the STUDENT INFO part.
A1B1 (10 marks)
Develop a Fixed-Size Array-List, with the given Python file A1B1.py. 
o In this part, students are required to implement a Fixed-Size version of Array-List: 
o No need to enlarge the list if it is full. 
o GIVEN an uncompleted Fixed-Size Array-List in A1B1.py (based on the one in our lecture notes, 
AList.py), with implemented methods below: 
GIVEN Operations (Class AList) Description
__init__(): Initiate/create a new Array-List (constructor / initializer) 
* This code sample is in Python-style
sizeL():int Get and return the size of the List (total number of elements) 
getL(pos):elt Get and return the element in position pos without removal 
- If failed, return null/None; e.g. pos is out of range 
insertL(elt,pos): Insert a new element elt into position pos
- If list is full, console display "<FULL>- Failed INSERT"
Do nothing if this task cannot be done, including if pos is out of range 
or other exceptional cases
removeL(pos):elt Remove and return the element elt in position pos
- If failed, return null/None; e.g. pos is out of range 
displayL(): Display all elements of the list in order 
* Remark: pos (position of element in list) starts from 1 in our course (not 0 as index in Python list)
3 / 5
o Complete the Fixed-Size Array-List with the following Extra Operations (methods of the class):
o At least one line of simple comment for each extra operation required
Operations (Class AList) Description 
appendL(elt): Insert/Append a new element elt into the end of the current list 
o If list is full, console display "<FULL>- Failed APPEND"
o Do nothing if this task cannot be done, including if pos is out of 
range or other exceptional cases
searchLastL(elt):int Search & return the position of the last occurrence of an input 
searching element elt. (* Position starts from 1) 
o Return -1 if this task cannot be done, including the searching 
element does not exist in the list.
isEmptyL():bool Check if the list is empty or not 
Return boolean True if the list is empty, otherwise False
isFullL():bool Check if the list is already full or not, for our fixed-size list 
Return True if the list is full, otherwise return False
clearL(): Clear the whole list (remove/delete all elements) 
Sample console display output of executing the main testing program MA1B1.py 
=== A1B1, Fixed-Sized ArrayList, by <Student NAME> <Student ID> === 
--- 0. new AL <CHECK> isFullL()?:False, isEmptyL()?:True 
>>> AList Display(Head/Left), size/last<0>, capacity<4>: 
--- 1. insertL <KABC>-D? 
<FULL>- Failed INSERT 
>>> AList Display(Head/Left), size/last<4>, capacity<4>: 
 > K > A > B > C 
--- 2. appendL: <KAC,K>-P? 
<FULL>- Failed APPEND 
>>> AList Display(Head/Left), size/last<4>, capacity<4>: 
 > K > A > C > K 
------ <CHECK> searchLastL('D'), pos:-1 
------ <CHECK> searchLastL('A'), pos:2 
--- 3. getL(myL.searchLastL(myL.removeL(1))), elt:K 
>>> AList Display(Head/Left), size/last<3>, capacity<4>: 
 > A > C > K 
------ <CHECK> searchLastL('C'), pos:2 
------ <CHECK> searchLastL('P'), pos:-1 
=== Program ends === 
4 / 5
A1B2 (10 marks)
Develop a Doubly-Linked-List, with the given Python file A1B2.py.
o Each node in Doubly-Linked-List has two links: one for the next node as in singly-linked list, the other 
for the previous node. The head node has no previous link and the tail node has no next link. This is 
implemented as a Python class DLNode and given in our Python file.
 
o Some operations could be done efficiently with this Doubly-Linked-List, which require tracing 
backward (the previous node of the current node).
o Given an uncompleted Doubly-Linked-List in A1B2.py (based on the one in our lecture notes, 
LList.py), with implemented methods below:
Given Operations (Class DLList) Description
__init__(): Create and initiate a new Doubly-Linked-List (constructor)
appendDL(elt): Append/Insert element elt as a new tail
displayDL(): Traverse & display node values, starting from head in forward order
displayBwDL(): Traverse & display node values, starting from tail in backward order
o Complete the Doubly-Linked-List with the following Extra Operations (methods of the class):
o At least one line of simple comment for each extra operation required
Operations (Class DLList) Description
getNextFwDL(refElt):elt Get & return (without remove) the next element of a reference 
element refElt, starting from head in forward order 
o Return None if no element can be returned
getPrevBwDL(refElt):elt Get & return (without remove) previous element of reference 
element refElt, starting from tail in backward order
o Return None if no element can be returned
removeNextFwDL(refElt):elt Remove & return the next element elt of a reference element 
refElt, starting from head in forward order
o Return None if no element can be removed and returned
- A B C - headN tailN
5 / 5
Sample console display output of executing the main testing program MA1B2.py 
=== === A1B2, DLList program, by <Student NAME> <Student ID>=== 
--- 1. List with Insert items <8,3,1,2,7,4,9> --- 
>>> DOUBLY-Linked-List Display: > 
 ... head <8>, tail <9>: 
 > 8 > 3 > 1 > 2 > 7 > 4 > 9 
<<< DOUBLY-Linked-List Display, Backwards: << 
 FROM ... tail <9>, head <8> 
 < 9 < 4 < 7 < 2 < 1 < 3 < 8 
------ <CHECK> getPrevBwDL('2'), elt:1 
------ <CHECK> getNextFwDL('9'), elt:None 
------ <CHECK> getNextFwDL('7'), elt:4 
--- 2. removeNextFwDL('4'), elt:9 
>>> DOUBLY-Linked-List Display: > 
 ... head <8>, tail <4>: 
 > 8 > 3 > 1 > 2 > 7 > 4 
<<< DOUBLY-Linked-List Display, Backwards: << 
 FROM ... tail <4>, head <8> 
 < 4 < 7 < 2 < 1 < 3 < 8 
------ <CHECK> getPrevBwDL('8'), elt:None 
------ <CHECK> getNextFwDL('1'), elt:2 
=== Program ends === 
SUBMISSION:
o Check and follow requirements and instructions, including to follow the required naming of files. 
o Run, Debug, Test and Evaluate your program based on the requirements. 
o Submit ALL related .py files to SOUL: 
o A1B1.py, MA1B1.py
o A1B2.py, MA1B2.py
o Do NOT compress/zip or rename the files. Submission work not following requirements may be 
penalized or not be assessed. 
 
~ END ~

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:關于橙多多客服電話咨詢-橙多多人工客服服務熱線電話
  • 下一篇:金滿滿強制下款怎么辦?金滿滿客服電話服務熱線
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相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;">

                另类小说综合欧美亚洲| av成人免费在线观看| 国产人成亚洲第一网站在线播放| 久久婷婷国产综合国色天香| 成人精品国产免费网站| 韩国精品在线观看| 96av麻豆蜜桃一区二区| 日韩视频在线永久播放| 国产成人在线观看| 激情综合五月天| 久久99精品国产麻豆婷婷洗澡| 亚洲丝袜美腿综合| 久久综合九色综合欧美就去吻| a在线播放不卡| 国产伦精品一区二区三区在线观看| 欧美精品日韩精品| 欧美在线你懂的| 国产 日韩 欧美大片| 青娱乐精品在线视频| 国产精品欧美一级免费| 欧美成人一区二区| 欧美影院一区二区| 欧美精品九九99久久| 专区另类欧美日韩| 美国av一区二区| 精品久久久久久久久久久久久久久 | 国产午夜精品久久久久久免费视| 一区二区三区av电影| 欧美视频在线一区二区三区| 丝袜美腿亚洲综合| 欧美成人性福生活免费看| 成人国产精品免费网站| 亚洲婷婷在线视频| 91行情网站电视在线观看高清版| 日本亚洲天堂网| 捆绑紧缚一区二区三区视频 | 亚洲日韩欧美一区二区在线| 亚洲国产精品久久不卡毛片| 麻豆91精品91久久久的内涵| 丁香亚洲综合激情啪啪综合| 99久久久久免费精品国产| 欧美日韩黄色影视| 成人av免费在线观看| 欧美性猛交一区二区三区精品| 欧美一区二区三区视频免费播放 | 欧美日韩一区精品| 亚洲国产精品av| 在线免费一区三区| 亚洲精品免费看| 91精品国产福利| 免费观看在线综合色| 欧美日本一区二区在线观看| 日本中文字幕一区二区视频| 久久新电视剧免费观看| 国产精品综合网| 91精品在线麻豆| 亚洲一级二级三级在线免费观看| 国产清纯美女被跳蛋高潮一区二区久久w | 五月综合激情日本mⅴ| 2017欧美狠狠色| 777色狠狠一区二区三区| 91污片在线观看| 国产一区二三区| 亚洲三级电影全部在线观看高清| 国产精品国产馆在线真实露脸| 色菇凉天天综合网| 国产成人一区在线| 亚洲国产日韩一级| 日韩一区二区影院| 欧美精品一区二区久久婷婷| 91国产免费观看| 国产肉丝袜一区二区| 亚洲欧洲另类国产综合| 蜜臀久久久久久久| 91美女精品福利| 亚洲在线视频免费观看| 欧美日韩中文另类| 成人综合婷婷国产精品久久 | 中文字幕不卡三区| 4438成人网| 国产一区欧美一区| 一区二区高清在线| 天天综合日日夜夜精品| 成人欧美一区二区三区视频网页 | 欧美色大人视频| 久久精品亚洲麻豆av一区二区 | 蜜臀久久99精品久久久久久9| 欧美自拍偷拍一区| 亚洲不卡一区二区三区| 成人动漫一区二区三区| 日韩网站在线看片你懂的| 欧美一区二区三区四区视频| 日韩一区二区三免费高清| 欧美r级在线观看| 日韩美女视频一区二区| 不卡欧美aaaaa| 看国产成人h片视频| 久久精品免费观看| 国产一区二区中文字幕| 国产成人免费av在线| 国产成人免费在线观看不卡| 高清成人免费视频| 一本一道久久a久久精品 | 欧美猛男超大videosgay| 亚洲黄色小说网站| 精品日韩一区二区| 国产精品久久夜| 在线看日本不卡| 亚洲色欲色欲www在线观看| 国产91对白在线观看九色| 精品国产髙清在线看国产毛片| 美女在线视频一区| 69堂精品视频| 久久99国产精品成人| 精品电影一区二区| 五月综合激情婷婷六月色窝| 久久精品一区二区三区不卡 | 99r国产精品| 国产乱理伦片在线观看夜一区| 国产精品国产三级国产普通话三级 | 久久精品一区二区三区四区| 伦理电影国产精品| 在线91免费看| 国产清纯在线一区二区www| 亚洲午夜激情网页| 日本韩国欧美在线| 怡红院av一区二区三区| 国内欧美视频一区二区| 国产精品福利av| 91黄色小视频| 日韩精品电影在线| 色综合天天综合色综合av| 国产清纯美女被跳蛋高潮一区二区久久w | av网站一区二区三区| 日韩高清一区在线| 日韩毛片视频在线看| 亚洲精品在线免费观看视频| 成人在线综合网| 日韩理论在线观看| 中文字幕在线不卡一区 | 久久这里只有精品首页| 91网站在线观看视频| 成人精品在线视频观看| 国产福利一区二区三区视频 | 亚洲国产婷婷综合在线精品| 亚洲精品国产a| 亚洲欧美欧美一区二区三区| 亚洲图片一区二区| 精品一区二区三区视频在线观看 | 国产精品66部| 欧美在线播放高清精品| 激情五月婷婷综合| 蜜桃av噜噜一区| 欧美亚洲自拍偷拍| 日韩av中文字幕一区二区| 亚洲精品久久7777| 亚洲成人高清在线| 日韩精品乱码av一区二区| 中文字幕日本乱码精品影院| 中文字幕一区二区日韩精品绯色| 国产亚洲婷婷免费| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲乱码国产乱码精品精的特点| 日韩国产高清在线| 国产成人夜色高潮福利影视| 91免费看片在线观看| 91福利视频网站| 国产无遮挡一区二区三区毛片日本| 国产精品成人免费精品自在线观看| 日本一区二区三区在线不卡| 天涯成人国产亚洲精品一区av| 国产精品99久久久久久似苏梦涵| 欧美日韩在线播放三区四区| 亚洲视频香蕉人妖| 不卡视频免费播放| 国产欧美日韩在线| 青青草精品视频| 欧美国产日本视频| 91精品久久久久久久久99蜜臂| 天天色天天操综合| 国产精品无遮挡| 欧美丰满少妇xxxbbb| 国产精品91一区二区| 亚洲成在线观看| 久久精品在线观看| 欧美精品vⅰdeose4hd| 激情综合色丁香一区二区| 亚洲激情图片小说视频| 91精品国产综合久久香蕉的特点 | 久久免费电影网| 欧美日韩三级一区二区| 丰满亚洲少妇av| 国产一区久久久| 国产乱码一区二区三区| 亚洲成人av在线电影| 1024成人网| 亚洲成a人片在线观看中文| 中文字幕va一区二区三区| 欧美国产成人精品| 久久亚洲二区三区|