Julia代写

CSC148 Assignment 2 Huffman tree compression

Assignment 2: Huffman tree compression CSC148 2023 Learning goals Introduction Background Fixed-Length and Variable-Length Codes Goal of Algorithm** Preliminaries Huffman¡¯s Algorithm Building the Tree Compressing Data Writing a Compressed File Decompressing Text Another Function Testing Your Work Thorough testing with pytest Plagiarism Acknowledgment Submission Instructions Learning goals After completing this assignment, you will be able […]

CSC148 Assignment 2 Huffman tree compression Read More »

Julia dual numbers

1. Implement a function f1(x) that computes the derivative of sin(x) using dual numbers. Verify that the result obtained using dual numbers is consistent with the analytical derivative of sin(x); 2. Implement a function f2(x, y) that computes the partial derivatives of x^2 + y^2 with respect to x and y using dual numbers. Verify

Julia dual numbers Read More »