mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-16 15:08:45 +00:00
Merge remote-tracking branch 'public/main' (syncing between public and
private)
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 1` works fine.
|
||||
//! See `assigment01/small_exercises_grade.rs` and `/scripts/grade.sh 1` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment01.zip` file in `target` directory.
|
||||
|
||||
pub mod small_exercises;
|
||||
mod small_exercises_grade;
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 2` works fine.
|
||||
//! See `assigment02/*_grade.rs` and `/scripts/grade.sh 2` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment02.zip` file in `target` directory.
|
||||
|
||||
pub mod small_exercises;
|
||||
mod small_exercises_grade;
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 3` works fine.
|
||||
//! See `assignment03/*_grade.rs` and `/scripts/grade.sh 3` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment03.zip` file in `target` directory.
|
||||
|
||||
pub mod small_exercises;
|
||||
mod small_exercises_grade;
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 4` works fine.
|
||||
//! See `assignment04/grade.rs` and `/scripts/grade.sh 4` for the test script.
|
||||
//! Run `/scripts/prepare-submissions.sh` and submit `/target/assignment04.zip` to <https://gg.kaist.ac.kr>.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment04.zip` file in `target` directory.
|
||||
|
||||
pub mod context;
|
||||
mod grade;
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 6` works fine.
|
||||
//! See `assignment06/*_grade.rs` and `/scripts/grade.sh 6` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment06.zip` file in `target` directory.
|
||||
|
||||
pub mod semiring;
|
||||
pub mod symbolic_differentiation;
|
||||
|
||||
@@ -6,7 +6,7 @@ use std::ops::*;
|
||||
/// Rational number represented by two isize, numerator and denominator.
|
||||
///
|
||||
/// Each Rational number should be normalized so that `demoninator` is nonnegative and `numerator` and `demoninator` are coprime.
|
||||
/// See [`normalize`] for examples. As a corner case, 0 is represented by Rational { numerator: 0, demoninator: 0 }.
|
||||
/// See `normalize` for examples. As a corner case, 0 is represented by Rational { numerator: 0, demoninator: 0 }.
|
||||
///
|
||||
/// For "natural use", Rational also overloads standard arithmetic operations, i.e, `+`, `-`, `*`, `/`.
|
||||
///
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 7` works fine.
|
||||
//! See `assignment07/*_grade.rs` and `/scripts/grade.sh 7` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment07.zip` file in `target` directory.
|
||||
|
||||
pub mod generator;
|
||||
pub mod my_itertools;
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 8` works fine.
|
||||
//! See `assignment08/*_grade.rs` and `/scripts/grade.sh 8` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment08.zip` file in `target` directory.
|
||||
|
||||
pub mod church;
|
||||
pub mod small_exercises;
|
||||
|
||||
@@ -11,7 +11,7 @@ use std::{iter::zip, ops::*};
|
||||
/// For example, the vector `vec![44,345,3]` represents the integer
|
||||
/// `44 * (2^32)^2 + 345 * (2^32) + 3`,
|
||||
/// and the vector `vec![u32::MAX - 5, u32::MAX - 7]` represents the integer
|
||||
/// `- (5 * 2^32 + 8)
|
||||
/// `- (5 * 2^32 + 8)`
|
||||
///
|
||||
/// You will implement the `Add` and `Sub` trait for this type.
|
||||
///
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 9` works fine.
|
||||
//! See `assignment09/*_grade.rs` and `/scripts/grade.sh 9` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment09.zip` file in `target` directory.
|
||||
|
||||
pub mod bigint;
|
||||
pub mod matmul;
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 10` works fine.
|
||||
//! See `assignment10/*_grade.rs` and `/scripts/grade.sh 10` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment10.zip` file in `target` directory.
|
||||
|
||||
pub mod labyrinth;
|
||||
pub mod small_exercises;
|
||||
|
||||
@@ -90,7 +90,7 @@ impl SubGraph {
|
||||
}
|
||||
|
||||
/// Returns true iff the subgraph contains a cycle. Nodes that do not belong to this subgraph
|
||||
/// are ignored. See https://en.wikipedia.org/wiki/Cycle_(graph_theory) for an algorithm.
|
||||
/// are ignored. See <https://en.wikipedia.org/wiki/Cycle_(graph_theory)> for an algorithm.
|
||||
pub fn detect_cycle(&self) -> bool {
|
||||
todo!()
|
||||
}
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
//! You should fill out `todo!()` placeholders in such a way that `/scripts/grade.sh 11` works fine.
|
||||
//! See `assignment11/*_grade.rs` and `/scripts/grade.sh 11` for the test script.
|
||||
//! Run `/scripts/prepare-submissions.sh` and submit `/target/assignment11.zip` to <https://gg.kaist.ac.kr>.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment11.zip` file in `target` directory.
|
||||
|
||||
pub mod graph;
|
||||
pub mod linked_list;
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
//!
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 12` works fine.
|
||||
//! See `assignment12/*_grade.rs` and `/scripts/grade.sh 12` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment12.zip` file in `target` directory.
|
||||
|
||||
pub mod card;
|
||||
pub mod demux;
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
//! Refer to your solution for assignment 09. You will implement the parallelized version of assignment 09.
|
||||
//! You should fill out the `todo!()` placeholders in such a way that `/scripts/grade.sh 13` works fine.
|
||||
//! See `assignment13/small_exercises_grade.rs` and `/scripts/grade.sh 13` for the test script.
|
||||
//!
|
||||
//! To submit, run
|
||||
//! ```bash
|
||||
//! # At the cs220 home directory,
|
||||
//! ./scripts/submit.sh
|
||||
//! ```
|
||||
//! and submit the generated `assignment13.zip` file in `target` directory.
|
||||
|
||||
pub mod small_exercises;
|
||||
mod small_exercises_grade;
|
||||
|
||||
Reference in New Issue
Block a user