exercise comp 3357
Exercise: Errors
Go的接口+Error使用练习,正好里面还引入了一个小知识点,不要在Error()实现里面用Sprint一个实现了Error()的类型,因为Sprint里面会调用类型的Error(),无限循环。主要代码如下: 1 type ErrNegativeSqrt float64 2 3 func (e Er ......
Exercise: Loops and Functions
牛顿迭代法求平方根,Go的tour一上来就搞一个这么高级的练习,吓到我了。不过还好练习说明里面给出了逼近公式,主要代码如下: 1 func Sqrt(x float64) float64 { 2 e, z := 1e-15, 1.0 3 for math.Abs(z*z - x) > e { 4 z ......
Exercise: Fibonacci closure
Go里面斐波那契数列的简单实现。 我那会儿的教材是1,1起算,即f(0)=1,f(1)=1。Go的Exercise说明里面是0,1起算。既然是用Go写,索性就用它的定义吧,主要代码如下(Go的这个multiple result用起来是真方便): 1 func fibonacci() func() i ......
Exercise: Maps
strings.Fields拆分单词,然后用map[string]int直接统计,主要代码: 1 func WordCount(s string) map[string]int { 2 fields := strings.Fields(s) 3 result := make(map[string]i ......
Summer Training 2023 Mini Comp 1 (Experts)
# Summer Training 2023 Mini Comp 1 (Experts) ## [2338 Carnival - PCOI Online Judge (pcoij8.ddns.net)](https://pcoij8.ddns.net/task/2338) ### 题目大意 交互题, ......
【每日一题】Problem 1195C. Basketball Exercise
[原题](https://codeforces.com/contest/1195/problem/C) #### 解决思路 设 $dp[i][j]$ 表示第 $i$ 行第 $j$ 列所能去到的最大值,则有 1. 当 $j$ 列取值时 - $dp[0][j]$ = 该列第**一**行的值 + 前一列第 ......
pgsql COMP9311 23T2
代写sql -- Q1: create or replace view Q1(subject_code) as SELECT code AS subject_code FROM Subjects JOIN OrgUnits ON Subjects.offeredBy = OrgUnits.id JO ......
COMP9311 SQL语言
This project aims to give you practice in Reading and understanding a moderately large relational schema (MyMyUNSW).Implementing SQL queries and views ......
COMP 23T2 shell程序
COMP(2041|9044) 23T2 — Assignment 1: Pigs1/8Assignment 1: Pigsversion: 1.3 last updated: 2022-07-04 930AimsThis assignment aims to give youpractice in ......
COMP9414 人工智能
OMP9414 23T2Artificial IntelligenceAssignment 1 - Reward-based learning agentsDue: Week 5, Friday, 30 June 2023, 11:55 PM1 ActivitiesIn this assignmen ......
COMP9444 Neural Networks and Deep Learning
COMP9444 Neural Networks and Deep LearningTerm 2, 2023Project 1 - Characters and Hidden UnitDynamicsDue: Wednesday 5 July, 23:59 pmMarks: 20% of final ......
m基于NOMA-CoMP系统的保密信道中断概率的matlab仿真
1.算法仿真效果 matlab2022a仿真结果如下: 2.算法涉及理论知识概要 随着数字通信技术的不断发展,无线通信作为一种高效且灵活的通信方式,已经成为了现代社会中不可或缺的一部分。然而,随着通信技术的不断进步,网络安全问题也逐渐成为了无线通信领域中的热点问题之一。在保证通信质量的同时,如何保护 ......
COMP3350
Assignment 2 – Business IntelligenceSemester 1, 2023Due Date Apr 24th 5pmAssignment 2 is due on Apr 24th 5pm. Each group will• upload the assignment f ......
COMP9319 2023T2
13:26 COMP9319 2023T2 Assignment 1 1/7COMP9319 2023T2 Assignment 1: LZWEncoding and DecodingYour task in this assignment is to implement an LZW encode ......
COMP9417 - Machine Learning
COMP9417 - Machine LearningHomework 1: Regularized Regression & NumericalOptimizationIntroduction In this homework we will explore some algorithms for ......
R语言收益率和波动性模拟股票价格COMP226带自测题|附代码数据
全文下载链接:http://tecdat.cn/?p=29581 最近我们被客户要求撰写关于模拟股票价格的研究报告,包括一些图形和统计输出。 在本工作表中,我们将研究价格、收益率和波动性。波动性通常用收益率的均方差来衡量,例如夏普比率的分母,它被用作风险的衡量标准。 我们将使用股票价格的平均对数收益 ......
COMP9417 Machine Learning 机器学习
COMP9417 - Machine LearningHomework 1: Regularized Regression & NumericalOptimizationIntroduction In this homework we will explore some algorithms for ......
COMP2401A C语言编程
COMP2401A – Assignment 1PrerequisitesBefore you can attempt the steps in this assignment you need to install and configure yourdevelopment environment ......
COMP2017 COMP9017 设计思想
COMP2017 COMP9017 Assignment 2Due: 11:59PM Tuesday 28 March 2023 local Sydney timeThis assignment is worth 5% + 30% of your final assessmentTask Descr ......
comp2123 问题解答
comp2123 Assignment 5 s1 2023Problem 1. We want to design a divide and conquer algorithm for computingthe union of a collection of rectangles. The inp ......
Thread Exercises C语言线程
1/4 Assignment 4: Threads Due 11 Jun by 23:59 Points 10 Available until 15 Jun at 23:59 Assignment 4 - Thread Exercises Due date 11:59pm - Sunday Week ......
COMP612 计算机图形
COMP612 Computer Graphics ProgrammingSemester 1, 2023Project: Helicopter SceneThis is an individual assignment. All work you submit must be entirely y ......
COMP90074 Web Security
School of Computing and Information Systems COMP90074: Web Security Assignment 3 - Project Plutus Due date: No later than 11:59pm on Sunday 4th June 2 ......
COMP3009J 信息检索编程
COMP3009J – Information RetrievalProgramming AssignmentThis assignment is worth 30% of the final grade for the module.Due Date: Sunday 28th May 2023 a ......
COMP30027 图书预测算法
School of Computing and Information SystemsThe University of MelbourneCOMP30027, Machine Learning, 2023Project 2: Book Rating PredictionTask: Build a ......
COMP612 图形计算
COMP612 Computer Graphics ProgrammingSemester 1, 2023Project: Helicopter SceneThis is an individual assignment. All work you submit must be entirely y ......
COMP2014J 数据结构与算法
Assignment 1:AVL Trees and Tree MapsCOMP2014J: Data Structures and Algorithms 2Weight: 15% of final gradeDue Date: 23:59 Tuesday May 9th 2023 (Week 12 ......
COMP90054-2023S1设计理论
COMP90054-2023S1 /A3_public_templatePublic template0 stars 1 forkView codeAssignment 3: Azul ProjectYou must read fully and carefully the assignment s ......
COMP3425数据挖掘
COMP3425辅导、辅导c/c++,Python编程COMP3425 and COMP8410 Data Mining S1 2023Assignment 2: Description ofDataData and Metadata The data supplied for the assign ......
COMP30023 远程程序调用
COMP30023 Project 2 Remote Procedure Call Out date: 28 April 2023 Due date: No later than 5pm Monday 22 May, 2023 AEST Weight: 15% of the final mark ......