搜索资源列表
MinimalCircle
- 最小覆盖圆的算法,已经知道的多个点,求一个最小圆将所有的点覆盖-Minimal covering circle algorithm, already know a number of points, find a smallest circle covering all the points
josephous
- Josephous问题答案,Josephous问题:m个小孩围成一个圈,从第一个小孩顺时针方向每数到第n个小孩就离开,最后的小孩是胜利者,求第几个小孩是胜利者。-Josephous answer, Josephous problem: m a child in a circle, clockwise from the first child to n every few months to leave children, the last child is a winner, find the
ExpandingRods
- 题意:已知一个圆的弦长l0及这条弦所在的弧长l1,求弦的中心点到弧的中心点的距离 思想:这是一个列方程然后利用二分法解方程的题目,令该疑弧所对的圆心角为anlg, 半径为r,根据题意有两个方程:l1=anlg*r l0=2*r*sin(anlg/2) 两个方程两个未知数, 通过化简有:2*l1*sin(anlg/2)-anlg*l0=0 因为角度的值是从0到2*pi,题目中讲到过 弧的长度不可能大于弦的两倍,所以角度不可能取到2*pi,但是有可能为0,把零特殊考虑, 再从0到
H
- 主要是计算最佳哈密尔顿圈,利用二边逐次修*实现,需要先给出带权的邻接矩阵。 注:利用矩阵翻转法求最佳H圈.pdf是h.m文件的说明文件。-Main is calculated by use of the second best Hamilton circle, edge successive correction method of realization, need to first presents the adjacency matrix with weight. Note: u
aq
- 写一个程序,定义抽象基类shape, 由它派生3个基类,Circle(圆),Rectangle(矩形),Trapezoid(梯形)。用虚函数分别计算几种图形的面积,并求他们的和。要求:用基类指针数组,使它的每一个元素指向一个派生类对象-Write a program that defines an abstract base class shape, it is derived from the three basic classes, Circle (round), Rectangle (re
gansidui
- 有M 个敢死队员要炸掉敌人的一碉堡,谁都不想去,排长决定用轮 回数数的办法来决定哪个战士去执行任务。如果前一个战士没完成任务,则要再派一个战士上去。现给每个战士编一个号,大家围坐成一圈,随便从某一个战士开始计数,当数到5 时,对应的战士就去执行任务,且此战士不再参加下一轮计数。如果此战士没完成任 务,再从下一个战士开始数数,被数到第 5 时,此战士接着去执行 任务。以此类推,直到任务完成为止。排长是不愿意去的,假设排长为 1 号,请你设计一程序,求出从第几号战士开始计数才能让排长最后一个留下来而
Get-Circle-Coordinate-And-Radius
- 給三點座標(X,Y),找圓心半徑的小工具。-To three coordinates (X, Y), find the center radius gadget.
max_num_str
- 动态规划算法实现: n个数排成一圈,找出和最大的连续数串-The realization of dynamic programming algorithm: the number of N are arranged in a circle, and find the maximum continuous string
yuan
- 根据圆的半径求面积和周长,半径可输入,使用比较灵活。-According to find the area and perimeter of a circle of radius
draw-c
- 画圆或圆弧程序,并且求出连个圆弧的交点。-Draw circle or arc program, and find the intersection of the arc.
