登录
首页 » 数据结构 » 数据结构-3 sum

数据结构-3 sum

于 2022-10-11 发布 文件大小:4.08 MB
0 169
下载积分: 2 下载次数: 1

代码说明:

We discussed two versions of the 3-sum problem: A "naive" implementation (O(N^3)) and a "sophisticated" implementation (O(N^2 lg N)). Implement these algorithms.  Your implementation should be able to read data in from regular data/text file with each entry on a separate line.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 航空信息管理系统
    航空信息管理系统-Aviation Information Management System
    2022-04-07 08:09:51下载
    积分:1
  • 这些是的经典实现算法,是学习必须掌握的...
    这些是数据结构结构的经典实现算法,是学习数据结构必须掌握的-shu ju jie gou jing dian suan fa shi xian
    2022-05-18 16:47:48下载
    积分:1
  • Floyd 算法,创建有向图,无向图,有向网,无向网的算法
    Floyd 算法,创建有向图,无向图,有向网,无向网的算法-Floyd algorithm, create a directed graph, undirected graph, directed networks, undirected networks algorithm
    2022-02-26 22:16:43下载
    积分:1
  • 将Canon相机拍照后自动存放到本地机器的照片,按照学工号重新命名后,保存到DB2库中,...
    将Canon相机拍照后自动存放到本地机器的照片,按照学工号重新命名后,保存到DB2数据库中,-Canon cameras will take pictures automatically deposited to the local machine photographs, according Xuegong, re-named after the preservation of the DB2 database,
    2022-06-18 08:00:04下载
    积分:1
  • 嵌入式库支持传统的客户机/服务器应用程序
    伯克利DB(libdb)是一种编程工具,提供了嵌入式数据库支持传统的和客户端/服务器应用程序。它包括B+树,队列,线性散列,固定,可变长度记录的访问方法,交易,锁定,测井,共享内存缓存,数据库恢复,和高可用系统复制。DB支持C,C++,Java,PHP,C++ #,和Perl API。它支持关键值对(NoSQL),SQL,及Java对象格式化数据。它可用于各种各样的UNIX平台以及QNX,Android,MAC OS X,和几个品种的Windows伯克利DB(libdb)是一种编程工具,提供了嵌入式数据库支持传统的和客户端/服务器应用程序。它包括B+树,队列,线性散列,固定,可变长度记录的访问方法,交易,锁定,测井,共享内存缓存,数据库恢复,和高可用系统复制。DB支持C,C++,Java,PHP,C++ #,和Perl API。它支持关键值对(NoSQL),SQL,及Java对象格式化数据。它可用于各种各样的UNIX平台以及QNX,Android,MAC OS X和Windows的几个品种,
    2022-04-23 17:20:35下载
    积分:1
  • Minimum spanning tree, my own little program, very good, and would like to share...
    最小生成树,我自己做的小程序,很好用,希望和大家分享-Minimum spanning tree, my own little program, very good, and would like to share with
    2022-08-07 14:03:44下载
    积分:1
  • [问题描述] 将N个关键字去整的记录进行整序, 以使所有关键字为非负的记录排在关键字为负的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N...
    [问题描述] 将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N) [输入] 待排序记录个数,各关键字的值。 [输出] 关键字从正负分开,正数在前 [存储结构] 待排序记录顺序存储。 [算法的基本思想] 快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。 #include using namespace std #define MAXNUM 100//设文件的最长可能长度 void sort(int* keys, const int len)//排序 -[Problem Description] N keyword to the integer sequence the entire record. keyword so that all non-negative Records with the keyword for the negative record, at least require the use of the additional space and time complexity of the algorithm is O (N) [imported] to be sort record number, The value of the keyword. [Output] keyword separate from the pluses and minuses are several former [storage structure] scheduling records to be stored sequence. [Algorithm for the basic idea] quick sort algorithm each time a record for any keyword as a standard, The remaining records will be divided into two groups, N-keyword
    2022-03-17 21:15:57下载
    积分:1
  • The Complete Book of Middleware
    The Complete Book of Middleware
    2022-05-26 21:10:20下载
    积分:1
  • 可以用4*4矩阵键盘调整的字钟,通过动态扫描显示在四位码管上。...
    可以用4*4矩阵键盘调整的数字钟,通过动态扫描显示在四位数码管上。-Can use 4* 4 matrix keyboard adjust the digital clock, through the dynamic scan is displayed in the four digital tube.
    2022-08-20 11:48:30下载
    积分:1
  • (严蔚敏)的试验指导书籍,非常方便的一本书
    数据结构(严蔚敏)的试验指导书籍,非常方便的一本书- i usuless for foreign school, it is a book about china s tutorial
    2022-07-01 02:35:12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载