其他
唉o(︶︿︶)o ,我果然还是玩不了 邻接链表,捣鼓了一晚上,只实现了 DFS的搜索 ,BFS 至今还不会,快回宿舍了,等校赛后再研究吧 邻接链表:                 n个顶点m条边的无向图,表示中有 n 个顶点表结点和 2m 个边表结点。(也就是说,每条边 u-v 在邻接表 中出现两次:一次在关于u的邻接表中,另一次在关于v的邻接表中)PS:注意是无向图,有...
分类:其他 时间:2014-05-24 23:30:00 收藏:0 阅读:434
Paraview几乎把VTk发挥到了极致,所以如果想能够对Paraview能够熟练的应用,必须熟悉VTK的一些基础的知识,现在整理一下VTK的一些理论知识! 1. VTK调研 1.1 VTK的程序构架 VTK在基础的图形函数库OpenGL的基础上采用面向对象的设计方法发展起来的,将一些常用的算法封装起来以供用户调用。 VTK采用流水线(p ipe line)机制,由可视化模...
分类:其他 时间:2014-05-25 01:41:05 收藏:0 阅读:631
2.1 图形模型 VTK的图形模型和实现类 VTK的图形模型,主要有以下几个核心类组成: 1)渲染交互器:实现用户和渲染窗口之间的交互操作。 2)渲染窗口(RenderW indow):实现类为 vtk RenderW indow。 3)渲染器( Render ):实现类为 vtkRe nder。 4)灯光(Light):实现类为 vtkLight 。 5)相机(Ca mer...
分类:其他 时间:2014-05-26 03:19:39 收藏:0 阅读:444
2014 百度之星资格赛,xor sum ,显然是要建一棵0、1树 其实很简单就是二叉树,只不过为了操作简便,即程序的速度,所以就采用静态树,即不动态分配内存,使用较大的全局数组。...
分类:其他 时间:2014-05-26 05:47:12 收藏:0 阅读:328
Young tableaus  是 Introduction_to_algorithms的一 道课后习题, 一度还把我难住了。现在把 python 代码贴出来,供大家参考。 #! /usr/bin/python """ young tableau    m x n matrix """ import sys class element():     def __ini...
分类:其他 时间:2014-05-24 21:07:54 收藏:0 阅读:482
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exact...
分类:其他 时间:2014-05-24 20:43:06 收藏:0 阅读:385
整数划分(三) 时间限制:1000 ms  |  内存限制:65535 KB 难度:5 描述 整数划分是一个经典的问题。请写一个程序,完成以下要求。   输入每组输入是两个整数n和k。(1 输出对于输入的 n,k; 第一行: 将n划分成若干正整数之和的划分数。 第二行: 将n划分成k个正整数之和的划分数。 第三行: 将n划分成最大数...
分类:其他 时间:2014-05-24 18:20:06 收藏:0 阅读:401
// // fs_loop_queue.h // fsnet // // Created by Vincent on 14-5-22. // Copyright (c) 2014年 Vincent. All rights reserved. // #ifndef fsnet_fs_loop_queue_h #define fsnet_fs_loop_queue_h #include "...
分类:其他 时间:2014-05-24 23:36:10 收藏:0 阅读:407
Arrange the Schedule Time Limit: 1 Second      Memory Limit: 65536 KB In Summer 2011, the ZJU-ICPC Team has a n-days training schedule. ZJU-ICPC Team has been divided into 4 Group: Akiba, BiliBi...
分类:其他 时间:2014-05-26 04:05:01 收藏:0 阅读:411
// // fs_stream.h // fsnet // // Created by Vincent on 14-5-22. // Copyright (c) 2014年 Vincent. All rights reserved. // #ifndef fsnet_fs_stream_h #define fsnet_fs_stream_h #include "fs_define.h"...
分类:其他 时间:2014-05-24 18:19:00 收藏:0 阅读:379
1158954158955158956166744
上一页1667435下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!