CS 61A Spring 2023 Homework 4

Homework 4 | CS 61A Spring 2023 Homework 4: Trees, Data Abstraction Due by 11:59pm on Thursday, March 2 Instructions Download hw04.zip. Inside the archive, you will find a file called hw04.py, along with a copy of the ok autograder. Submission: When you are done, submit the assignment by uploading all code files you’ve edited […]

CS 61A Spring 2023 Homework 4 Read More »

CS2910 Assessed Coursework 2 Artificial Intelligence

CS2910 Assessed Coursework 2 This assignment must be submitted by 10am on the 3rd of March 2023. Feedback will be provided by 20th March 2023. 1 Learning outcomes assessed This assignment assesses knowledge and understanding of finding paths using uninformed search implemented in Prolog. In particular, the outcomes assessed are:- knowledge and understanding of uninformed

CS2910 Assessed Coursework 2 Artificial Intelligence Read More »

CPSC 418 midterm take home

CpSc 418 Midterm – Take Home Part Due: February 23, 2023, 11:59pm 100 points Please submit your solution using: handin cs-418 midterm-home Your solution should contain two files: midterm.erl: Your solutions to coding questions. midterm.pdf: Your solutions to written questions. The instructors solution to homework 2 along with more test cases are available at: http://www.students.cs.ubc.ca/~cs-418/2022-2/exams/midterm-1/midterm.html.

CPSC 418 midterm take home Read More »

CPSC 418 hw1 Erlang

-module(hw1). % template code for CPSC 521 hw1. -export([sum/1, sum_i/0, sum_hr/1, sum_tr/1, sum_iii/1, % functions for Question 1 sq/1, sq_i/0, sq_ii/1, sq_iii/1]). -export([gcd/2]). % function for Question 2 -export([p/1, p/2, pi/1, pi/2]). % functions for Question 3. -export([gen_fold/3, gen_test/1]). % functions for Question 4. % -export([…]). % When writing your implementation, you will almost %

CPSC 418 hw1 Erlang Read More »

CPSC 418 hw1

CpSc 418 Homework 1 Due: January 24, 2023, 11:59pm Getting started with Erlang Early-Bird: January 22, 2023, 11:59pm Please submit your solution using: handin cs-418 hw1 Your solution should contain two files: hw1.erl: Erlang source code for your solutions to the questions. hw1.pdf: Your solutions to written questions. Templates for hw1.erl and hw1_tests.erl are available

CPSC 418 hw1 Read More »

CPSC 418 hw2

CpSc 418 Homework 2 Due: February 7, 2023, 11:59pm Early-Bird: February 5, 2023, 11:59pm 105 points Please submit your solution using: handin cs-418 hw2 Your solution should contain three files: hw2.erl: Erlang source code for your solutions to the questions. hw2_tests.erl: EUnit tests for the functions you were asked to write. In addition to the

CPSC 418 hw2 Read More »

CPSC 418 hw2 Erlang

-module(hw2). % template code for CPSC 418, HW2. -export([p/2]). % function for Question 1 -export([reduce_bu/3]). % function for Question 2 -export([scan_bu/4]). % function for Question 2 % functions for Question 4 -export([brownie_steps/2, brownie_seq/2, brownie_max_mag/1, brownie_max_mag/2, brownie_par/3, brownie_stat/3, brownie_stat/4]). % a few utility functions -export([gcd/2, missing_implementation/1]). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % template for Q1: use reduce to

CPSC 418 hw2 Erlang Read More »