首页 > 其他分享 >CSC3100 Data Structures

CSC3100 Data Structures

时间:2024-09-26 08:52:42浏览次数:1  
标签:code int Structures A1 CSC3100 report problem Data your

Requirements

Code (90%)

You can write your code in Java, Python, C, or C++. The time limit may vary among differentanguages, depending on the performance of the language. Your code must be a complete excutableprogram instead of only a function. We guarantee test data strictly compliance with the requirementsin the description, and you do not need to deal with cases where the input data is invalid.

No AI Assistance or Plagiarism: All code must be your own. The use of AI tools (e.g., ChatGPT,GitHub Copilot) or copying from external sources or peers is strictly forbidden.Violations of the plagiarism rules will result in 0 points or even failure of this course.

Libraries in this assignment:

  • For C/C++, you can only include standard library.
  • For Java, you can only import java.util.*
  • For Python, you can only import standard library. In other words, you cannot import libraries

such as numpy.We provide an example problem to illustrate the information above better.

Report (10%)

You also need to write a report in pdf type to explain the following:

  • What are the possible solutions for the problem?
  • How do you solve this problem?
  • Why is your solution better than others?

Please note that the maximum number of pages allowed for your report is 5 pages.Remember that the report is to illustrate your thinking process. Keep in mind that your report issupposed to show your ideas and thinking process. We expect clear and precise textual descriptionsin your report, and we do not recommend that you over-format your report.

Example Problem: A + B Problem

Description

Given 2 integers A and B, compute and print A + B

Input

Two integers in one line: A, and B

Output

One integer: A + B

Sample Input 1

1 2

Sample Output 1

3

Problem Scale & Subtasks

For 100% of the test cases, 0 A, B 106

Solutions

Java

import java . util .*;

public class Example {

public static void main ( String [] args ) {

int a , b;

Scanner scanner = new Scanner ( System . in );

a = scanner . nextInt ();

b = scanner . nextInt ();

scanner . close ();

System . out . println (a + b );

}

}

Python

AB = input (). split ()

A , B = int ( AB [0]) , int ( AB [1])

print (A + B )

C

# include < stdio .h >

int main ( int argc , char * argv [])

{

int A , B ;

scanf ("%d%d", &A , &B );

printf ("%d\n", A + B );

return 0;

}

C++

# include < iostream >

int main ( int argc , char * argv [])

{

int A , B ;

std :: cin >> A >> B;

std :: cout < < A + B << std :: endl ;

return 0;

}

Submission

After finishing this assignment, you are required to submit your code to the Online Judge System(OJ), and upload your .zip package of your code files and report to BlackBoard.

C.1 Online Judge

Once you have completed one problem, you can submit your code on the page on the Online Judgeplatform (oj.cuhk.edu.cn, campus only) to gain marks for the code part. You can submit yoursolution of one problem for代 写CSC3100 Data Structures   no more than 80 times.2After you have submitted your program, OJ will test your program on all test cases and give you agrade. The grade of your latest submission will be regarded as the final grade of the corresponding

Note:

The program running time may vary on different machines. Please refer to the result ofte online judge system. OJ will show the time and memory limits for different languages on thecorresponding problem page.If you have other questions about the online judge system, please refer to OJ wiki (campus networkonly). If this cannot help you, feel free to contact us.

C.2 BlackBoard

You are required to upload your source codes and report to the BlackBoard platform. You need

to name your files according to the following rules and compress them into A1_<Student ID>.zip :

A1_ < Student ID >. zip

|-- A1_P1_ < Student ID >. java / py /c/ cpp

|-- A1_P2_ < Student ID >. java / py /c/ cpp

|-- A1_Report_ < Student ID >. pdf

For Java users, you don’t need to consider the consistency of class name and file name.

For example, suppose your ID is 123456789, and your problem 1 is written in Python, problem 2 is

written in Java then the following contents should be included in your submitted A1_123456789.zip:

A1_123456789 . zip

|-- A1_P1_123456789 . py

|-- A1_P2_123456789 . java

|-- A1_Report_123456789 . pdf

C.3 Late Submissions

Submissions after Sept. 29 2024 23:59:00(UTC+8) would be considered as LATE.The LATE submission page will open after deadline on OJ.Submisson time = max{latest submisson time for every problem, BlackBoard submisson time} There will be penalties for late submission:

  • 0–24 hours after deadline: final score = your score×0.8
  • 24–72 hours after deadline: final score = your score×0.5
  • 72+ hours after deadline: final score = your score×0

FAQs

CSC3100 Data Structures Fall 2024

Programming Assignment 1

1 Array Problem (40% of this assignment)

1.1 Description You are given a sequence of integers ai of length n. Additionally, you are given m operations to performon this sequence. Each operation is one of the following:

 

标签:code,int,Structures,A1,CSC3100,report,problem,Data,your
From: https://www.cnblogs.com/wx--codinghelp/p/18432683

相关文章

  • Exadata中的Infiniband交换机,更换完SSD模块后,交换机反复重启
    1.故障描述客户的ExadataX5-2, 某天收到EM13c告警,提示Exadata中的Infiniband交换机出现故障。 2.故障处理2.1 执行showunhealthy命令后,显示告警信息。#showunhealthyWARNINGFlashdiskhasbadblocks.FALURE-1sensorsNOTOK从命令输出可以看了,该Infiniband......
  • 文献阅读笔记|合成医学图像数据综述|Generating Synthetic Data for Medical Imaging
    论文链接:https://doi.org/10.1148/radiol.232471论文信息:GeneratingSyntheticDataforMedicalImaging,综述,2023年9月14日投稿,2024年3月1日接收,2024年9月10日发表于Radiology蓝色字体标注对我而言的新知识目录绪论需求决定合成数据的应用合成数据应具备的特点合成图像的应用1......
  • alloc_data 的作用
    `alloc_data`结构体看起来是用于配置或请求某种内存分配(很可能是通过ION(Input/OutputMemoryManagement)系统,这是一种在某些操作系统(如Android的Linux内核变种)中用于高效管理图形、视频等输入输出相关内存的机制)。每个成员都有特定的用途:-`alloc_data.len`:指定要分配的内存大......
  • 信创里程碑:TapData 与海量数据达成产品兼容互认证,共同助力基础设施国产化建设
    近日,深圳钛铂数据有限公司(以下简称钛铂数据)自主研发的钛铂实时数据平台(TapDataLiveDataPlatform,TapDataLDP)与北京海量数据技术股份有限公司(以下简称海量数据)海量数据库G100管理系统(VastbaseG100)完成并通过相互兼容性测试认证。测试结果显示,TapDataLDPV3与VastbaseG10......
  • 【YashanDB知识库】如何配置jdbc驱动使getDatabaseProductName()返回Oracle
    本文转自YashanDB官网,具体内容请见https://www.yashandb.com/newsinfo/7352676.html?templateId=1718516问题现象某些三方件,例如工作流引擎activiti,暂未适配yashandb,使用中会出现如下异常:问题的风险及影响影响客户业务无法进行。问题影响的版本所有的yashandbjdbc驱动版本。问题......
  • DevExpress WinForms中文教程:Data Grid - 如何添加或删除行?
    本教程介绍DevExpressWinForm的DataGrid控件UI元素和API,它们使您和最终用户能够添加或删除数据行。您将首选学习如何启用内置的数据导航器,然后学习如何使用MicrosoftOutlook启发的NewItem行添加新记录。最后教程将向您展示基本的API,它使您能够添加或删除行,并在最终用户使用网......
  • 如何在生成式AI里使用 Ray Data 进行大规模 RAG 应用的 Embedding Inference
    检索增强生成(RAG,即RetrievalAugmentedGeneration)是企业级生成式AI(GenAI)应用的热门案例之一。多数RAG教程演示了如何利用OpenAIAPI结合Embedding模型和大语言模型(LLM)来进行推理(Inference)。然而,在开发过程中,如果能使用开源工具,就可以免去访问自己数据的费用,同时也能加......
  • web.database() 创建的数据库对象线程安全吗?
    免责声明:尝试谷歌,一无所获,我管理我可能谷歌搜索得不好,但我没有想法。我有一个web.py应用程序,我需要定期运行一些数据库维护任务,并且我'我希望使用线程来完成此操作,以便Python应用程序完全独立。我的问题是:为了做到这一点,我必须采取什么样的预防措施(如果有的话)?计划是在调......
  • 基于 pandas DataFrame 中所有列的值的最小行计数条件
    假设我在pandasDataFrame中有三列,没有任何null或空值。每个项目的设施始终具有唯一的值。一个项目可以有一个或多个与其关联的供应商。同一供应商可以显示对于给定项目的不同设施,多次注册。对于给定项目,设施永远不会与多个供应商关联。......
  • List Comprehensions, Classe Data
    Assignment#2-ListComprehensions,Classes,CSV,TabularDataThisassignmentconsistsofthreeparts:1.HighestandLowestPotentiallyaffectedvehicles.2.nelta.py3.nelta.pyandRecallswithPotentiallyaffectedvehicles>500,000Clickonthis......