ICode9

精准搜索请尝试: 精确搜索
  • 算法分析与设计实验报告 Project52021-06-17 02:05:53

    实验报告 课程名称 学生姓名 实验名称 实验地点 1. 给定平面上的n个点 求其中最近的点对 2. 这是一个经典的问题,可以采用分治策略解决。 将平面按照x轴划分为左右两个区域,现对横跨左右的点对进行统计,容易发现每次只要对结果取min即可 类似于二分法的

  • 算法分析与设计实验报告 Project62021-06-17 02:01:26

    实验报告 课程名称 学生姓名 实验名称 实验地点 1. 给定N个数,求其中第K小的数 2. 如果使用快速排序或者其他高效的排序算法,可以在O(nlogn)的时间下轻松得出第k小 考虑如何改进快速排序来减小复杂度,我们发现快排中,划分实际上是从数组a[l - r]中选取一个

  • Algorithm:【Algorithm算法进阶之路】之十大经典排序算法2021-06-15 22:52:01

    Algorithm:【Algorithm算法进阶之路】之十大经典排序算法   相关文章 Algorithm:【Algorithm算法进阶之路】之数据结构二十多种算法演示Algorithm:【Algorithm算法进阶之路】之十大经典排序算法Algorithm:【Algorithm算法进阶之路】之数据结构基础知识Algorithm:【Algorithm算法进阶之

  • Algorithm:【Algorithm算法进阶之路】之数据结构二十多种算法演示2021-06-15 22:51:40

    Algorithm:【Algorithm算法进阶之路】之数据结构二十多种算法演示     目录 一、数据结构算法 1、顺序表 2、链表 3、栈和队列 4、串的模式匹配 5、稀疏矩阵 6、广义表 7、二叉树 8、图 9、存储管理    10、静态查找 11、动态查找 12、内部排序 13、外部排序     相关文章 A

  • Algorithm:【Algorithm算法进阶之路】之数据结构基础知识2021-06-15 22:51:26

    Algorithm:【Algorithm算法进阶之路】之数据结构基础知识   相关文章 Algorithm:【Algorithm算法进阶之路】之数据结构二十多种算法演示Algorithm:【Algorithm算法进阶之路】之十大经典排序算法Algorithm:【Algorithm算法进阶之路】之数据结构基础知识Algorithm:【Algorithm算法进阶之

  • ML之XGBoost:XGBoost参数调优的优秀外文翻译—《XGBoost中的参数调优完整指南(带python中的代码)》(一)2021-06-15 20:02:16

    ML之XGBoost:XGBoost参数调优的优秀外文翻译—《XGBoost中的参数调优完整指南(带python中的代码)》(一)       目录 概述/Overview 介绍/Introduction 你应该知道什么/What should you know ? 目录/Table of Contents 1. xgboost的优势/The XGBoost Advantage          

  • Leetcode Algorithm-13-罗马数字转整数2021-06-15 10:32:54

    前言 闲来无事刷题玩,顺带记录一下解题思路,方便未来二刷的时候来找思路。 题目 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 100

  • Pohlig–Hellman algorithm2021-06-14 14:36:46

    给定 \(a,P\),\(P\) 是质数,设 \(g\) 为 \(P\) 的原根,求出 \(g^x\equiv a\mod P\) Pohlig–Hellman algorithm 对 \(P-1\) 唯一分解,设为 \(\prod p_i^{e_i}\),对每个 \(p_i^{e_i}\) 解出: \[g^{x_i\Big(\frac{p-1}{p_i^{e_i}}\Big)}\equiv a \]那么有 \(x \equiv x_i\mod p_

  • NJU Static Program Analysis 01: Introduction2021-06-13 23:33:23

    NJU Static Program Analysis 01: Introduction Abstraction ​ Key questions in this lecture are: What are the differences between static analysis and (dynamic) testing Understand soundness, completeness, false negatives, and false positives. Why soundness i

  • 2021-06-102021-06-10 13:33:20

    1、需求描述 本次实验需要在linux下完成RDD编程并熟悉Spark的RDD基本操作,编写代码来完成下面的三个问题 1.pyspark交互式编程 本作业提供分析数据data.txt,该数据集包含了某大学计算机系的成绩,数据格式如下所示: Tom,DataBase,80 Tom,Algorithm,50 Tom,DataStructure,60 Jim,Dat

  • 【算法进阶】用回溯法(backtracking algorithm)求解N皇后问题(N-Queens puzzle)2021-06-09 10:06:23

    “谈天说地吹个水 哈喽哈喽 ~~ 各位小伙伴好久不见的啦,也不知道大家有没有想我了。如果没有,那我待会再来问一下好了。 嘛,这个时候。想必各位小伙伴早已忘记被考试周支配的恐惧,早就卷好铺盖屁颠屁颠跑回家探(tang)亲(shi)了。小编在这里本着“一天不装逼,浑身难受”的原则。赶在过年

  • 【优化算法】遗传算法(Genetic Algorithm) (附代码及注释)2021-06-09 10:05:26

    好好学习,天天向上 目录 今天带给大家一个敲流弊的东西,那就是耳熟能详的遗传算法。咳咳,事先请大家准备好课本哈,就是高中学的那本生物必修2。   本文目录 01遗传算法定义 02生物学术语 03问题导入 04大体实现 05具体细节 06代码实现   字数  6739 字 阅读 预计阅读时间20分钟 01

  • 经典优化算法之分治法(Divide-and-Conque Algorithm)2021-06-09 10:01:24

    欲下载本文相关代码,请在后台回复【分治法】即可下载。 1 目录 1.1  分治法基本介绍 1.2  分治法通俗解释 1.3  分治法严谨定义 1.4  分治法的流程 1.5  分治法的经典例子 1.6  总结   2 分治法基本介绍 分治分治,即分而治之。分治,就是把一个复杂的问题分成两个或更多的相同或

  • 【读书笔记】Young Tableau_Calculus of tableaux_bumping and sliding2021-06-06 09:57:23

    目录 bumpingSchensted bumping algorithm 举例 sliding/digging a hole一些定义 Schiitzenberger sliding algorithm 举例 大段的文字都是机翻然后再改改 bumping Schensted bumping algorithm 写个很简单的东西,对一个tableau 做row insert x (这里的tableau:从上至下格

  • 手撕Ford-Fulkerson algorithm 学一半的笔记2021-06-06 09:56:45

    目录 定义大概就这些 伪代码 自己做slide里的quiz 搬运别人的代码 我明白了, 余量网络 名如其名 比如你f/c=3/5 那么正边2,reverse edge3,加起来是5 在这个你建的新图上找s到t的路径 然后path的最小边权叫delta 给流图的对应path的每条边e都加流 delta,或者 反边减delta (反边

  • Machine learning(1-Introduction)2021-06-06 09:36:00

    1、What is machine learning Field of study that gives computers the ability to learn without being explicitly programmed A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performanc

  • 字符串算法(string_algorithm)2021-06-01 21:33:47

    format 作用 格式化输出对象,可以不改变流输出状态实现类似于printf()的输出 头文件 #include <boost/format.hpp> using namespace boost; 简单的例子 //第一种用法 cout << format("%s:%d+%d=%d\n") %"sum" %1 %2 %(1+2); //第二种用法 format fmt("(%1% + %2%) * %2% = %3%\n&qu

  • 【优化求解】磷虾群算法(Krill Herd Algorithm,KHA)2021-06-01 10:30:48

    由来:根据磷虾群觅食的特性,由Gandomi等在2012年首次提出[1]。在运动过程中,磷虾群不断地聚集以增大种群密度,并减少被捕食的几率,同时探索生存区域,尽可能缩短它们与食物的距离,最终使得种群获得食物。 算法描述: 1、磷虾个体的速度(位置X的微分)更新公式: 解释:磷虾群位置的变化受到三种

  • LeetCode 到底怎么刷?GitHub 上多位大厂程序员亲测的高效刷题方式2021-05-28 11:58:02

    作者:HelloGitHub-小鱼干 在众多的诸如阿里、腾讯等大厂之中,最看中面试者刷题技能的大概要数有“链表厂”之称的字节跳动了。作为一个新晋大厂,字节跳动以高薪、技术大佬云集吸引了众多的程序员呢,问题来了,怎么才能进入“链表厂”呢?答案之一:刷题! 刷题就不得不提 LeetCode 了,如何高效

  • Backprogation发展介绍2021-05-25 22:02:22

     BP学习算法最早是由保罗·沃博斯在20世纪70年代提出的。然而,它在1986年被鲁梅尔哈特和麦克莱兰重新发现,之后BP被广泛使用[1]。BP算法的理论是基于误差修正学习规则,该规则使用误差函数来修改连接权值以逐渐减小误差。为了简化,这个误差是实际网络输出和期望输出之间的差异。

  • CPT104-lab11-Shortest-Job-First (SJF) scheduling algorithm2021-05-22 21:34:48

    结构体自定义排序函数,调用stdlib.h库的系统快速排序qsort 1 //sjf non-preemptive with same arrival time 2 3 #include<stdio.h> 4 #include<stdlib.h> 5 #define N 5010 6 7 struct process { 8 int pid; 9 int bt; 10 int wt; 11 int tat; 12 };

  • poj1958——Strange Towers of Hanoi2021-05-20 22:58:47

    The teacher points to the blackboard (Fig. 4) and says: "So here is the problem: There are three towers: A, B and C. There are n disks. The number n is constant while working the puzzle. All disks are different in size. The disks are initially

  • 近似算法 - 3 - 随机采样和线性舍入2021-05-15 07:01:35

    Approximation Algorithm: Randomized sampling and rounding of LP Source: Williamson and Shmoys. The Design of Approximation Algorithms. Cambridge University Press, 2010.

  • C++ algorithm sort 使用2021-05-03 22:31:33

    C++ algorithm sort 使用 一般使用方法-sort扩展使用方法-sort+cmp 一般使用方法-sort #include <algorithm> #include <vector> using namespace std; vector<int> test; sort(test.begin(),test.end()); sort(test.begin()+1,test.end()); //std::sort(test.begin(),te

  • Algorithm(4th) 1.5 union-find算法2021-05-02 21:02:28

    问题描述 问题输入是一对整数对,每个整数都代表一个对象,一对整数”p,q“表示 ”p与q相连“(具有自反性,传递性,对称性,被归到一个等价类里),要求编写程序来筛除在输入时就已经在一个等价类里的整数对。这个算法可以在计算机网络连结方面发挥作用:每个整数相当于计算机,整数对相当于网络间

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有