Description You are given a rooted tree with n vertices. The vertices are numbered from 1 to n, the root is the vertex number 1. Each vertex has a col ...
分类:
其他好文 时间:
2018-08-17 21:35:04
阅读次数:
324
以一个简单的波纹效果为例: 一、引入shader脚本文件。 1、vertex shader 2、fragment shader 3、cocos2d-js code 二、直接嵌入shader脚本 原文地址:https://www.cnblogs.com/fingerblog/p/5179853.htm ...
分类:
Web程序 时间:
2018-08-10 17:11:19
阅读次数:
872
You are given a tree (a connected acyclic undirected graph) of n vertices. Vertices are numbered from 1 to n and each vertex is assigned a character f ...
分类:
其他好文 时间:
2018-08-07 13:10:27
阅读次数:
189
题目描述 We have a tree with N vertices. Vertex 1 is the root of the tree, and the parent of Vertex i (2≤i≤N) is Vertex Pi.To each vertex in the tree, Snu ...
分类:
其他好文 时间:
2018-08-04 19:03:40
阅读次数:
131
DirectX9 中的着色器包括:Vertex shader 和 Pixel shader。首先学习顶点着色器VS,它替换了固定功能管线中的变换(Transformation)和光照(Lighting)阶段。 顶点声明: 1. 通过 D3DVERTEXELEMENT9 结构的数据描述顶点 2. 创建 ...
分类:
其他好文 时间:
2018-07-26 10:15:36
阅读次数:
183
关于图的一些定义 ·图:由两个集合{V,E}所组成,记作G(V,E) ? V是图中顶点(Vertex)的非空有限集合。 ? E是图中边(Edge)的有限集合。 ? 这里只考虑简单图:无自环、无重边(平行边) ? 子图(subgraph):边的子集,以及相关联的点集 ←无向图 ←有向图,* {v2,v ...
分类:
其他好文 时间:
2018-07-19 13:48:40
阅读次数:
150
一、拓扑排序的定义 1.AOV网:在一个表示工程的有向图中,用顶点表示活动,用弧表示活动之间的优先关系,这样的有向图为顶点表示活动的网,称为AOV网(Activity On Vertex Network)。 2.拓扑序列:设G={V,E}是一个具有n个顶点的有向图,V中的顶点序列v1,v2,..., ...
分类:
编程语言 时间:
2018-07-03 14:49:46
阅读次数:
117
源地址 https://tour.go-zh.org/methods/4 一、描述 你可以为指针接收者声明方法。 这意味着对于某类型 T,接收者的类型可以用 *T 的文法。(此外,T 不能是像 *int 这样的指针。) 例如,这里为 *Vertex 定义了 Scale 方法。 指针接收者的方法可以修 ...
分类:
其他好文 时间:
2018-06-22 13:21:38
阅读次数:
134
#inlcude<stdio.h> #define V_SIZE 8 #define E_SIZE 10 typedef struct { char vertex[V_SIZE]; int adjacency_matrix[V_SIZE][V_SIZE]; }Un_Graph; int visite ...
分类:
其他好文 时间:
2018-06-21 23:50:24
阅读次数:
299
You are given a tree consisting of nn vertices. A number is written on each vertex; the number on vertex ii is equal to aiai. Let's denote the functio ...
分类:
其他好文 时间:
2018-06-14 20:45:01
阅读次数:
335