eecs2001 Midterm Practice

eecs2001-P Practice Questions 1 Relevant topics All topics from Lectures 0 − 12 are relevant for the midterm, including regular expressions (but not including the pumping lemma). You should, in particular be comfortable with all questions that have appeared in the first two assignments, or have been solved during the tutorials. Below, I am listing

eecs2001 Midterm Practice Read More »

Rust Code

In the lecture and Lab C we looked at Rust class called sharing of data across two or more threads pub struct SharedData { value: u32 impl SharedData { pub fn new() -> SharedData { SharedData { value: 0 pub fn update(&mut self) { let local_value = self.value; std::thread::sleep(std::time::Duration::new(1,0)); self.value = local_value + 1; pub

Rust Code Read More »

CUDA MatrixMult

CUDA MatrixMult Design and implement C and CUDA programs that called MatrixMult.c, MatrixMultNaive.cu, and MatrixMultTiled.cu. The MatrixMult.c, MatrixMultNaive.cu, and MatrixMultTiled.cu programs will use a command line argument that corresponds to the row/column length to multiply two square matrices with random single precision numbers (i.e., floats). They will then output 1) the entire execution time in

CUDA MatrixMult Read More »

COMP3121 9101 22T2 — Assignment 4 (UNSW Sydney)

COMP3121/9101 22T2 — Assignment 4 (UNSW Sydney) Due 28th July 2022 at 4pm Sydney time In this assignment we apply dynamic programming. There are four problems each worth 20 marks, for a total of 80 marks. Your solutions must be typed, machine readable PDF files. All submissions will be checked for plagiarism! For each question

COMP3121 9101 22T2 — Assignment 4 (UNSW Sydney) Read More »

COMP9101 COMP3121 A3

Assignment 3 Due: July 27 at noon sharp You have five problems, marked out of a total of 100 marks. NOTE: Your solutions must be typed, machine readable .pdf files. All sub- missions will be checked for plagiarism! 1. Boolean operators NAND and NOR are defined as follows true f alse true f alse true

COMP9101 COMP3121 A3 Read More »