ICode9

精准搜索请尝试: 精确搜索
  • Calculus不止是微积分的意思2022-06-10 22:01:06

    Calculus (disambiguation) Calculus (from Latin calculus meaning ‘pebble’, plural calculī) in its most general sense is any method or system of calculation. Calculus may refer to: Mathematics Infinitesimal calculus (or simply C

  • 1136. 平行课程(拓扑排序)2022-04-07 13:03:07

    1136. 平行课程 已知有 N 门课程,它们以 1 到 N 进行编号。 给你一份课程关系表 relations[i] = [X, Y],用以表示课程 X 和课程 Y 之间的先修关系:课程 X 必须在课程 Y 之前修完。 假设在一个学期里,你可以学习任何数量的课程,但前提是你已经学习了将要学习的这些课

  • inner-product encryption2022-02-21 15:38:53

    zero and non-zero inner-product encryption (ZIPE/NIPE) ZIPE achieves an additional security property,attribute-hiding, in which vector x is hidden from the ciphertext. ZIPE providesfunctional encryption for a wide class of relations corresponding to equ

  • 1.2、数学基础:集合与关系 (Mathematical foundations: sets and relations)2022-01-13 22:32:11

    第一章 - 算法基础与算法分析 fundamentals of algorithms and algorithm analysis 1.2、数学基础:集合与关系 (Mathematical foundations: sets and relations)1.2.1、集合、等价集合、基数(Sets, set equality, cardinality)(1)、集合(2)、等价集合(3)、空集(empty set)(4

  • floyd2021-10-31 17:04:33

    floyd算法 参考AcWing 时间复杂度 \(O(n^3)\) 求多源最短路 :可以在 \(O(n^3)\) 的时间内求出任意两点的距离 朴素三重循环 for(int k=1; k<=n; k++) for(int i=1; i<=n; i++) for(int j=1; j<=n; j++) dist[i][j]= min(dist[i][j], dist[i][k]+ dist[k][j]); 基

  • 343 排序(floyd算法求解传递闭包)2021-10-24 20:31:46

    1. 问题描述: 给定 n 个变量和 m 个不等式。其中 n 小于等于 26,变量分别用前 n 的大写英文字母表示。不等式之间具有传递性,即若 A > B 且 B > C,则 A > C。 请从前往后遍历每对关系,每次遍历时判断: 如果能够确定全部关系且无矛盾,则结束循环,输出确定的次序; 如果发生矛盾,则结束循环,

  • 【源码分析】Laravel-admin 关联保存的原理2021-09-05 16:31:50

    前言 最近在写底代码编程,写到关联关系保存的时候,想一下其实可以参考Laravel-admin 关联保存,因为他很简单的通过 ->hasMany 一个函数就解决了平常我们写的麻烦的关联模型。所以别人优秀的代码和思想是值得借鉴的。 查找源码位置 关联保存肯定是在Form 模块中编写的,所以我很快

  • 并查集应用:敌人和朋友2021-05-09 11:31:24

    package Algorithms_算法.作业.Friend_Enemy_并查集; public class UnionSet { private int []unions,enemy,rank; int[][] relations; char[] f_or_e; public UnionSet(int[][] relations, char[] f_or_e) { this.relations = relations;

  • 广度优先搜索算法2021-02-15 17:04:14

    vertex.h 1 #ifndef _VERTEX_H_ 2 #define _VERTEX_H_ 3 #include <ostream> 4 5 enum BFS_VERTEX_COLOR { 6 WHITE, 7 GRAY, 8 BLACK, 9 }; 10 11 struct Vertex { 12 int index; 13 BFS_VERTEX_COLOR color = WHITE; 14 int d =

  • AcWing 343. 排序(传递闭包)2019-09-20 21:07:18

    题干: 给定 n 个变量,m 个不等式。 不等式之间具有传递性,即若 A>B 且 B>C ,则 A>C。 判断这 m 个不等式是否有矛盾。 若存在矛盾,则求出 t 的最小值,满足仅用前 t 个不等式就能确定不等式之间存在矛盾。 若无矛盾,则判断这 m 个不等式是否能确定每一对变量之间的关系。 若能,则求

  • POJ1094 Sorting It All Out 拓扑排序2019-09-03 10:01:39

    思路借鉴:https://www.cnblogs.com/yueshuqiao/archive/2011/08/16/2140485.html 题意:A~Z中n个字母,给你m对先后关系,让你判断它们的顺序情况。 思路:有以下三种情况: 1、有环,说明给定次序矛盾。 2、能确定唯一次序。 3、无法确定唯一次序。 其中1、2可以不用完m对先后关系,而3必

  • Sorting It All Out2019-07-28 19:07:38

    Sorting It All Out An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D implies that A < B, B < C and C

  • Sorting It All Out (拓扑排序+floyd)2019-04-09 12:51:19

    An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D implies that A < B, B < C and C < D. in this pro

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

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

ICode9版权所有