-
自动聊天机器人
自动聊天机器人 -automatic chatting robot automatically chatting robot
- 2022-02-21 19:29:50下载
- 积分:1
-
本算法使用分治法求解最近点对问题。事先用O(nlogn)时间对x坐标进行排序,使得所有的点是按x坐标从小到大排好序的(x坐标相同时y坐标小的排前),然后取下标小...
本算法使用分治法求解最近点对问题。事先用O(nlogn)时间对x坐标进行排序,使得所有的点是按x坐标从小到大排好序的(x坐标相同时y坐标小的排前),然后取下标小于n/2属于左边的点集PL,取下标大于n/2属于右边的点集PR,即用O(1)时间就可以将规模为n的问题分解为两个规模为n/2的、同类型的子问题。分割完毕之后就可以采用分治法,分别求出PL和PR中的最近点对,最终通过递归实现。-This algorithm uses divide and conquer to solve the problem closest point. Prior to use O (nlogn) time to sort the x coordinate so that all points are based on x coordinates from small to large sorted (x coordinates with the same y coordinates of the small, the top), and then remove the standard is less than n/2 the set of points belonging to the left PL, remove the standard is greater than n/2 set of points belonging to the right of PR, that is to use O (1) time can be the problem size n divided into two size n/2, the same type The sub-problems. Segmentation can be used after completion of sub-rule method, respectively, find the PL and PR in the last points and eventually through the recursion.
- 2022-01-25 16:01:13下载
- 积分:1
-
解决以下问题:
For solving the following problem:
"There is No Free Lunch"
Time Limit: 1 Second Memory Limit: 32768 KB
One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free.
However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
- 2022-12-06 21:00:03下载
- 积分:1
-
samsung公司的s3c2443的的原理图,包括核心板和底板,希望对大家有用...
samsung公司的s3c2443的的原理图,包括核心板和底板,希望对大家有用-samsung" s schematic diagram of the s3c2443, including the core board and floor, in the hope that useful
- 2022-01-26 05:51:29下载
- 积分:1
-
用vb实现快速傅立叶变换,运行速度达到最优化,可以c代码媲美,因此可以实现实时傅立叶变换。实现模块化,直接作为一个模块调用即可,非常方便!...
用vb实现快速傅立叶变换,运行速度达到最优化,可以c代码媲美,因此可以实现实时傅立叶变换。实现模块化,直接作为一个模块调用即可,非常方便!-with vb fast Fourier transform, speed of operation to achieve the most optimized code can be comparable to c, it can achieve real-time Fourier transform. To achieve modular, as a direct call modules can be very convenient!
- 2022-03-22 07:18:51下载
- 积分:1
-
动态数据交换节点之间使用TCP在NS2
应用背景网络拓扑已利用节点之间的双工链路创建。之间的沟通节点是建立在一个随机的方式使用-兰德-函数。最有线网络中常用的协议是传输控制协议;关键技术有线网络可以使用一个简单的拓扑结构,节点连接的节点数由有线连接。在网络中的任何2个节点可以使用一个双工连接链路和链路特性包括带宽、延迟和队列类型;
- 2022-02-09 16:35:40下载
- 积分:1
-
algorithm List of Viterbi algorithm, use qpsk channel, the coding is used (133,1...
这是lva算法,List of viterbi algorithm,使用qpsk信道,采用的编码是(133,171,165)-algorithm List of Viterbi algorithm, use qpsk channel, the coding is used (133,171,165)
- 2023-05-29 09:15:03下载
- 积分:1
-
Snake games are free to manipulate the snake, to eat food, have extended and acc...
蛇类游戏是自由操纵蛇,吃东西,有延长和加速两大宝藏
- 2022-03-24 17:36:32下载
- 积分:1
-
given by the generating polynomial expansion Domain
由给定的多项式生成扩域-given by the generating polynomial expansion Domain
- 2023-09-02 19:50:03下载
- 积分:1
-
日历程序,用Basic编写的
日历程序,用Basic编写的-calendar program, prepared by the Basic
- 2022-01-26 01:12:36下载
- 积分:1