AE2ACE coursework 2019-2020This coursework is worth 25% of the final mark.Stock Trading & Algorithm Correctness.Deadline: 29 November 2019 16:00Part I ...
分类:
其他好文 时间:
2019-12-14 21:06:33
阅读次数:
88
#include <iostream> #include <vector>#inclde <algorithm> using namespace std; int main() { int n, t; vector<int> que; cin >> n >> t; for (int i = 0; i ...
分类:
其他好文 时间:
2019-12-14 20:48:37
阅读次数:
105
自我训练是一种增量算法(incremental algorithm): 场景: 半监督学习,具备一小部分有标记样本和大量未标记样本,通常存在大量样本标注困难的问题。 基本流程: 1. 最初,使用少量标记数据构建单个分类器。 2. 然后,迭代地预测未标记样本的标签。 3. 通过2中预测结果的可信程度对 ...
分类:
其他好文 时间:
2019-12-14 18:59:39
阅读次数:
96
写在前面 本文是在解决加密和解密用的不是同一套密钥对时找到的一篇, 最后问题不在byte数组, 是自己工具类中生成密钥对的问题, 但是本文RSA加密中公钥指数和公钥系数的获取(byte[]部分)讲解比较细致, 虽然最后也没用这种方式. 以下是本人采用的方式. 位数确实不对, 但是不影响前台根据系数和 ...
分类:
其他好文 时间:
2019-12-14 16:01:04
阅读次数:
121
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2019-12-13 23:28:11
阅读次数:
78
在ACM中库函数是非常重要的,因为有很多很多通用的操作和结构啊,非常实用,有些时候还是要深入了解一下这些库函数,码上一些库函数还有他们通用的操作。 目录 math string algorithm vector set map queue stack 1.math (1)int abs(int) d ...
分类:
编程语言 时间:
2019-12-13 21:47:55
阅读次数:
76
#include<stdio.h> #include<iostream> #include<vector> #include<algorithm> using namespace std; int n; struct DATA{ int id, fid,mid , k; int num,people ...
分类:
其他好文 时间:
2019-12-13 21:34:42
阅读次数:
68
日常吐槽 作为hin久hin久以前考试考到过的一道题窝一直咕咕咕到现在才想起来去做~~因为讲解都忘干净了然后自己重新考虑发现被卡了3天~~ "题面" 看到题目发现这题的dp状态似乎有点不是很明确? 我们来理一理题目的限制以及我们要干什么。 每条路上出现的金币数量受时间和地点的限制。所以我们至少要用到 ...
分类:
其他好文 时间:
2019-12-12 18:03:00
阅读次数:
106
主键都相同,选择排序和插入排序谁快选择排序:比较N*(N-1)/2,交换0;插入排序:比较N-1,交换0;插入排序更 大专栏 algorithm-question快逆序数组,插入排序与选择排序选择排序:比较N(N-1)/2,交换N-1;插入排序:比较N(N-1)/2,交换N*(N-1)/2;插入排序... ...
分类:
其他好文 时间:
2019-12-12 01:04:34
阅读次数:
77
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i ...
分类:
其他好文 时间:
2019-12-11 13:25:42
阅读次数:
104