国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

COMP90025 代做、代寫 C/C++編程語言

時間:2024-08-19  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


 

COMP**025 Parallel and multicore computing

Project 1: Spell checker — identifying words

Project 1 requires developing and submitting a C/C++ OpenMP program and a written

report. Project 1 is worth 20% of the total assessment and must be done individually. The due

date for the submission is nominally 11.59pm on 11 September, the Wednesday of Week 8.

Submissions received after this date will be deemed late. A penalty of 10% of marks per working

day late (rounded up) will be applied unless approved prior to submission. The weekend does not

count as working days. A submission any time on Thursday will attract 10% loss of marks and so

on. Please let the subject coordinator know if there is anything unclear or of concern about these

aspects.

1 Background

We have all come to rely on spelling checkers, in everything from word processors to web forms

and text messages. This year’s projects will combine to form a simple parallel spell checker.

In Project 1, you will write OpenMP (shared memory) code to collect a list of distinct words

from a document, ready to check the spelling of each. In Project 2, you will write MPI (message

passing) code to take such a list of words and check them against a dictionary of known words.

2 Assessment Tasks

1. Write an OpenMP (or pthreads) C/C++ function

void WordList(uint8_t *doc, size_t doc_len, int non_ASCII, uint16_t ***words, int *count)

to do the following:

(a) take a pointer doc to a UTF-8 string and its length, doc len;

(b) parse the string into a list of words, where a word is defined as a maximal string of

characters that are Unicode letter type, as determined by iswalnum (or isalnum for

ASCII) in the current locale (not necessarily the standard C locale).

That is, it is a string of Unicode letters that

? is either preceded by a non-letter or starts at the start of the string; and

? is either followed by a non-letter or ends at the end of the string;

The function should malloc two regions of memory: one containing all of the (‘\0’-

terminated) words contiguously, and the other containing a list of pointers to the starts

of words within the first region. A pointer to the second should be returned in words.

The memory should be able to be freed by free (**words); free (*words);

(c) set *count to the number of distinct words.

The array should be sorted according to the current locale. The C function strcoll compares

according to the current locale. We will test with locales LC ALL=C, en AU. In bash, the locale

can be specified on the command line, like

1

LC ALL=en AU run find words text**ASCII.txt

LC ALL=en AU run find words text**en.txt

or it can be specified using export

export LC ALL=en AU

run find words text**ASCII.txt

run find words text**en.txt

There should be no spaces around the “=”.

If nonASCII is zero, then you can assume that the UTF-8 input is all ASCII, and optimize

for that case. If nonASCII is 1, then you can assume that non-ASCII characters are rare.

If nonASCII is 2, then non-ASCII characters may be common. This is not required, unless

you are aiming to get the fastest possible code.

You must write your own sorting code. (Choose a simple algorithm first, and replace it if

you get time.)

Do not use any container class libraries.

You can assume that all UTF-16 characters fit into a single uint16_t.

The driver program to call your code, and a skeleton Makefile, are available at https:

//canvas.lms.unimelb.edu.au/files/20401**0/download?download_frd=1 and on

Spartan at /data/projects/punim0520/2024/Project1.

2. Write a minor report (3000 words (+/- 30%) not including figures, tables, diagrams, pseu-

docode or references). The lengths given below are guidelines to give a balanced report; if

you have a good reason to write more or less, then you may. Use the following sections and

details:

(a) Introduction (400 words): define the problem as above in your own words and discuss

the parallel technique that you have implemented. Present the technique using parallel

pseudo-code. Cite any relevant literature that you have made use of, either as a basis

for your code or for comparison. This can include algorithms you chose not to use along

with why you didn’t use them. If you use an AI assistant like ChatGPT, then clearly

identify which text was based on the AI output, and state in an appendix what prompt

you used to generate that text.

(b) Methodology (500 words): discuss the experiments that you will use to measure the per-

formance of your program, with mathematical definitions of the performance measures

and/or explanations using diagrams, etc.

(c) Experiments (500 words): show the results of your experiments, using appropriate

charts, tables and diagrams that are captioned with numbers and referred to from the

text. The text should be only enough to explain the presented results so it is clear what

is being presented, not to analyse result.

(d) Discussion and Conclusion (1600 words): analyze your experimental results, and dis-

cuss how they provide evidence either that your parallel techniques were successful or

otherwise how they were not successful or, as may be the case, how the results are

inconclusive. Provide and justify, using theoretical reasoning and/or experimental evi-

dence, a prediction on the performance you would expect using your parallel technique

if the number of threads were to increase to a much larger number; taking architectural

aspects and technology design trends into account as best as you can – this may require

some speculation.

For each test case, there will be a (generous) time limit, and code that fails to complete

in that time will fail the test. The time limit will be much larger than the time taken

by the sequential skeleton, so it will only catch buggy implementations.

2

(e) References: cite literature that you have cited in preparing your report.

Use, for example, the ACM Style guide at https://authors.acm.org/proceedings/produc

tion-information/preparing-your-article-with-latex for all aspects of formatting your

report, i.e., for font size, layout, margins, title, authorship, etc.

3 Assessment Criteria

Your code will be tested on Spartan. Although you are welcome to develop on your own

system if that is convenient, it must compile and run on Spartan to get marks for “speed” and

“correctness” (see below).

Assessment is divided between your written report and the degree of understanding you can

demonstrate through your selection and practical implementation of a parallel solution to the

problem. Your ability to implement your proposed parallel solution, and the depth of understand-

ing that you show in terms of practical aspects, is called “software component”. In assessing the

software component of your project the assessor may look at your source code that you submit

and may compile and run it to verify results in your report. Programs that fail to compile, fail

to provide correct solutions to any problem instances, and/or fail to provide results as reported

may attract significant loss of marks. The remaining aspects of the project are called “written

report”. In assessing the written report, the assessor will focus solely on the content of the written

report, assessing a range of aspects from presentation to critical thinking and demonstration of a

well designed and executed methodology for obtaining results and drawing conclusions.

The assessment of software component and written report is weighted 40/60, i.e., 40% of the

project marks are focussed on the software component (mostly for speed and correctness) and 60%

of the project marks are focussed on the written report.

Assessing a written report requires significant qualitative assessment. The guidelines applied

for qualitative assessment of the written report are provided below.

4 Quality Assessment Guidelines

A general rubric that we are using in this subject is provided below. It is not criteria with each

criterion worth some defined points. Rather it is a statement of quality expectations for each

grade. Your feedback for your written assessment should make it clear, with respect to the quality

expectations below, why your submission has received a certain grade, with exact marks being

the judgement of the assessor. Bear in mind that for some assignments, independent discussions

(paragraphs) in the assignment may be attracting independent assessment which later sums to

total the final mark for the assignment. As well, please bear in mind that assessors are acting more

as a consistent reference point than as an absolute authority. Therefore while you may disagree

with the view point of the assessor in the feedback that is given, for reasons of consistency of

assessment it is usually the case that such disagreement does not lead to changes in marks.

Quality expectations:

Marks will be awarded according to the following rubric.

Speed (20%)

H1 Speed-up likely to be O(p/ log(p)) for p processors for sufficiently large prob-

lems. Probably faster with two processors than the best sequential algorithm.

Among the fastest in the class.

H2 Speed-up likely to be O(√n) for sufficiently large problems Faster than most

submissions

H3 Some speedup for large problems and large numbers of processors

P Performance is similar to a sequential algorithm.

N Markedly slower than a good sequential implementation.

3

Evaluation set-up (30%)

H1 Thorough and well-focused testing for correctness. Thorough and well-focused

tests of scalability with problem size. Thorough and well-focused tests of scal-

ability with number of processors. Good choice of figures and tables. Reports

on times of appropriate sub-tasks. Good choice of other tests in addition to

scaling

H2 Makes a reasonable effort at all of the above, except perhaps “other tests”. Test

probably less well focused (testing things that don’t matter, and/or missing

things that do). Reports on times of some sub-tasks.

H3 At least one class of evaluation is absent or of poor quality

P Basic testing and evaluation. Probably one or two well-chosen graphs, or

multiple less-suitable graphs

N Major problems with evaluation methodology: insufficient, unclear or mislead-

ing

Discussion (30%)

H1 Excellent. Clearly organised, at the level of subsections, paragraphs and sen-

tences. Insightful. Almost no errors in grammar, spelling, word choice etc..

You Show potential to do a research higher degree.

H2 Very good. Clear room for improvement in one of the areas above.

H3 Good. Discussion addresses the questions, but may be unclear, missing impor-

tant points and/or poorly expressed.

P Acceptable, but with much room for improvement. Discussion may not address

important aspects of the project, or may have so many errors that it is difficult

to follow.

N

Correctness (20%)

Your code is expected to be correct. Unlike other in categories, you can get

negative marks for having wildly incorrect results.

20 Correct results

15 One error, or multiple errors with a clear explanation in the text

0–14 Multiple errors with inadequate explanation

-10– -0 Major errors

-20– -10 May crash, give completely ridiculous results or fail to compile

When considering writing style, The “Five C’s of Writing” is adapted here as a guideline for

writing/assessing a discussion:

Clarity - is the discussion clear in what it is trying to communicate? When sentences are vague

or their meaning is left open to interpretation then they are not clear and the discussion is

therefore not clear.

Consistency - does the discussion use consistent terminology and language? If different terms/

language are/is used to talk about the same thing throughout the discussion then it is not

consistent.

Correctness - is the discussion (arguably) correct? If the claims in the discussion are not logically

sound/reasonable or are not backed up by supporting evidence (citations), or otherwise are

not commonly accepted, then they are not assumed to be correct.

Conciseness - is the discussion expressed in the most concise way possible? If the content/

meaning/understanding of the discussion can be effectively communicated with less words,

then the discussion is not as concise as it could be. Each sentence in the discussion should

be concisely expressed.

Completeness - is the discussion completely covering what is required? If something is missing

from the discussion that would have significant impact on the content/meaning/understanding

4

of what it conveys, then the discussion is incomplete.

5 Submission

Your submission must be via Canvas (the assignment submission option will be made available

closer to the deadline) and be either a single ZIP or TAR archive that contains the following files:

? find words.c or find words.cc: Ensure that your solution is a single file, and include com-

ments at the top of your program containing your name and student number, and examples

of how to test the correctness and performance of your program, using additional test case

input files if you require.

? Makefile: A simple makefile to compile your code, and link it to the driver run find words.c

provided.

? find words.slurm: A SLURM script to run your code on Spartan.

? Report.pdf: The only acceptable format is PDF.

? test case inputs: Any additional files, providing test case inputs, that are needed to follow

the instructions you provide in your solution’s comments section. (Note that we will also

test your code on our own test cases to check for correctness.)

6 Other information

1. AI software such as ChatGPT can generate code, but it will not earn you marks. You

are allowed to use tools like ChatGPT, but if you do then you must strictly adhere to the

following rules.

(a) Have a file called AI.txt

(b) That file must state the query you gave to the AI, and the response it gave

(c) You will only be marked on the differences between your final submission and the AI

output.

If the AI has built you something that gains you points for Task 1, then you will not

get points for Task 1; the AI will get all those points.

If the AI has built you something that gains no marks by itself, but you only need to

modify five lines to get something that works, then you will get credit for identifying

and modifying those five lines.

(d) If you ask a generic question like “How do I control the number of threads in OpenMP?”

or “What does the error ‘implicit declaration of function rpc close server’ mean?” then

you will not lose any marks for using its answer, but please report it in your AI.txt file.

If these rules seem too strict, then do not use generative AI tools.

2. There are some sample datasets in /data/projects/punim0520/2024/Project1, which you

can use for debugging. Most are too small to use to test timing, but you can extract long

sequences from abstractsi **1166.txt.gz, which are the abstracts from articles in medical

journals.

You do not need to copy these to your home directory. You can either specify the full path

on the command line, or create a “symbolic link”, which makes it appear that the file is in

your directory, with the command

ln -s ?full path? .

5

where the final “.” means “the current directory”. It can be replaced by a filename. If you

run with a large input file, please remember to delete the output file once you are finished

with it.

3. If you want to use prefix sum (I would), you can use the OpenMP 5.0 “scan” directive. A

simple example is given at https://developers.redhat.com/blog/2021/05/03/new-fea

tures-in-openmp-5-0-and-5-1 Implement all other parallel algorithms yourself.

4. You can ignore Unicode codepoints that require more than 16 bits in UTF-16.

5. When describing speed-up, remember that this is defined relative to the speed of the best

possible sequential algorithm, not your chosen algorithm run with a single thread.

6. It is good to show a breakdown of the time spent in various components.

7. Your submission will be evaluated on ASCII text, French Unicode text (mostly ASCII but

with some non-ASCII characters) and Hindi text (mostly non-ASCII). How can you use that

knowledge to help you write faster code?

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








 

 

掃一掃在手機打開當前頁
  • 上一篇:代寫 COMP3506、代做 Python 語言程序
  • 下一篇:ECOS3003 代做、代寫 Java,Python 程序設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美亚洲日本黄色| 久久久久99精品成人片| 欧美主播一区二区三区美女 久久精品人| 人人做人人澡人人爽欧美| 国产亚洲精品久久久久久久| 久久免费国产精品1| 色综合久综合久久综合久鬼88| 日韩手机在线观看视频| 国产麻豆一区二区三区在线观看| 久久免费视频网| 欧美激情va永久在线播放| 欧美日韩亚洲一区二区三区四区 | aaa免费在线观看| 日韩亚洲欧美中文高清在线| 亚洲午夜精品国产| 黄色一级片播放| 国产成人黄色av| 一本一生久久a久久精品综合蜜| 日av在线播放中文不卡| 国产欧美日韩综合一区在线观看| 久久久久久久久久久免费| 亚洲一区二区中文| 欧美日韩在线成人| 久久久精品有限公司| 欧美激情免费在线| 国产免费一区二区三区香蕉精| 欧美成人一区二区三区电影| 国产视频一视频二| 中文字幕在线乱| 91久久嫩草影院一区二区| 亚欧洲精品在线视频免费观看| 91久久国产精品91久久性色| 欧美一级特黄aaaaaa在线看片| 久久精品一二三区| 欧美性视频在线播放| 久久精品免费电影| 国产亚洲精品久久久久久久| 久久艳片www.17c.com| 国产免费黄色av| 亚洲日本精品国产第一区| 国产精品999视频| 青青在线视频观看| 国产精品美女主播| 国产免费一区二区三区四在线播放 | 欧美精品在线免费播放| 免费日韩中文字幕| 国产综合视频在线观看| 久久精品电影网站| 欧美中文字幕视频在线观看| 国产精品视频免费在线| 国产综合av一区二区三区| 在线天堂一区av电影| 久久精品午夜一区二区福利| 青青草久久网络| 精品中文字幕在线观看| 91精品网站| 黄色一级二级三级| 亚洲综合视频1区| 久久艹国产精品| 国产视频精品网| 日本精品久久久久影院| 久久精品视频在线播放| 成人中文字幕在线播放| 色爱区成人综合网| 国产精品高潮呻吟久久av无限| 97精品久久久| 欧美日韩高清免费| 一本色道久久综合亚洲精品婷婷| 国产成人精品福利一区二区三区| 国严精品久久久久久亚洲影视| 亚洲最大福利视频网站| 按摩亚洲人久久| www插插插无码免费视频网站| 欧美视频在线观看网站| 亚洲精品久久久久久一区二区| 久久精品国产久精国产一老狼| 北条麻妃在线视频观看| 免费在线a视频| 永久免费看av| 久久久精品国产一区二区| 97精品视频在线| 免费看a级黄色片| 日韩在线观看a| 操人视频在线观看欧美| 久久久久久一区| 国产伦精品一区二区三区视频孕妇| 日韩中文字幕亚洲精品欧美| 精品国产91亚洲一区二区三区www| 国产福利视频一区二区| 国产美女被下药99| 欧美牲交a欧美牲交aⅴ免费下载 | 久久精品免费电影| 91精品国产99久久久久久红楼| 国产在线精品一区免费香蕉| 青青久久av北条麻妃海外网| 亚洲一区二区三区乱码aⅴ蜜桃女| 国产精品久久久久99| 久久av一区二区三区漫画| av片在线免费| 国产精品一区在线观看| 激情综合网婷婷| 热久久这里只有| 亚洲a级在线观看| 一区二区在线中文字幕电影视频| 国产精品老牛影院在线观看| 少妇久久久久久| 99一区二区三区| 国产伦精品一区二区三区高清| 美女亚洲精品| 黄色免费高清视频| 欧美日韩高清在线一区| 日本精品福利视频| 日本精品在线视频| 日产精品高清视频免费| 亚洲精品高清视频| 亚洲淫片在线视频| 亚洲午夜精品国产| 中文字幕在线中文字幕日亚韩一区 | 蜜臀久久99精品久久久久久宅男 | 欧美精品久久久久| 欧美精品免费在线| 国产精品久久波多野结衣| 国产精品嫩草影院久久久| 久久综合伊人77777尤物| www.欧美精品| 国产精品丝袜一区二区三区| 久久精品91久久香蕉加勒比| 久久福利电影| 久久久久久久激情| 久久99精品久久久久久三级 | 国产精品成人播放| 久久中文字幕在线视频| 欧美巨大黑人极品精男| 欧美激情伊人电影| 欧美精品成人91久久久久久久| 欧美激情一区二区三级高清视频| 精品国产免费av| 九九热在线精品视频| 欧美激情一区二区三区高清视频| 国产精品国产三级国产专播精品人 | 日本免费在线精品| 日本欧美中文字幕| 欧美日韩国产高清视频| 免费av网址在线| 福利精品视频| 久久久一二三四| 精品国产一区二区三区在线观看| 日韩在线激情视频| 久久精品成人一区二区三区 | 国产精品推荐精品| 久久av在线看| 中文字幕在线观看一区二区三区| 亚洲精品国产精品国自产| 日本一本中文字幕| 欧美高清性xxxxhdvideosex| 国产日产精品一区二区三区四区 | 国产不卡一区二区在线观看| 久久久久久久97| 国产精品男女猛烈高潮激情| 九九热精品视频| 婷婷久久五月天| 欧美 日韩 国产一区| 国产乱子夫妻xx黑人xyx真爽| 97国产在线观看| 精品国产一区二区三区在线观看| 欧美精品日韩www.p站| 亚洲欧洲在线一区| 欧美一区亚洲二区| 国产精品中文字幕在线| 国产成人a亚洲精品| 日韩在线视频观看| 精品久久久久av| 无码内射中文字幕岛国片| 黄页免费在线观看视频| 97免费视频观看| 久久精品视频免费播放| 亚洲砖区区免费| 欧美最猛性xxxxx亚洲精品| 国产深夜精品福利| 国产成人中文字幕| 欧美激情a∨在线视频播放| 日本免费久久高清视频| 国产日韩一区二区在线观看| 国产不卡一区二区在线观看| 精品伦精品一区二区三区视频| 亚洲最大福利视频网站| 欧美久久久久久| 91精品国产高清自在线| 国产精品成熟老女人| 日韩欧美在线免费观看视频| 国产免费一区二区三区四在线播放 | 日韩有码在线视频| 欧美日韩福利电影| 青青草视频在线视频| 成年人网站国产| 国产精品日韩欧美一区二区 | 久久国产一区| 久久久久成人精品| 国内精品久久久久久影视8| 国产极品尤物在线|