登录
首页 » Windows开发 » Set T [0: n

Set T [0: n

于 2022-11-25 发布 文件大小:1.02 kB
0 255
下载积分: 2 下载次数: 1

代码说明:

设T[0:n-1]是n个元素的一个数组。对任一元素x,设S(x)={i|T[i]=x}。当|S(x)|>n/2时,称x为T的主元素。设计一个线性时间算法,确定T[0:n]是否有一个主元素。-Set T [0: n-1] is the n elements of an array. Of any element x, set S (x) = (i | T [i] = x). When | S (x) |> n/2 when x for T said the main element. Design a linear time algorithm to determine the T [0: n] whether there is a main element.

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

发表评论

0 个回复

  • 系统信息程序
    系统信息程序的开发-System Information program development
    2022-01-26 00:46:28下载
    积分:1
  • ramasubramanian
    在这里,我附上一个PG学生的项目源代码
    2022-03-21 23:49:11下载
    积分:1
  • 时间函数举例,一个猜数游戏,判断一个人反应快慢。
    时间函数举例,一个猜数游戏,判断一个人反应快慢。-function of time, for example, imagine a few games, a judge who reaction speed.
    2022-05-24 05:31:16下载
    积分:1
  • word文档转PDF工具软件C++源码
    资源描述 资源描述 此 word文档转PDF工具软件 可批量、快速的处理 word文档,在Windows平台下,采用VC++开发,有详细的使用开发解释说明,适合学习,亦可以作为平时实用小工具处理文档等,,,,,,,,,,,
    2023-03-28 01:05:05下载
    积分:1
  • 利用gSoap生成的WebServer服务端提供Add、Sub、Mul、Div等接口
    应用背景做为WebServer服务端,提供加、减、乘、除四个WebServer服务的接口。使用C/C++语言进行开发WebServer服务,可以练习使用开源的gSoap框架,区别于用其他语言进行的WebServer服务的开发。关键技术利用gSoap框架,根据calcsoap.h文件,生成wsdl文件和相关的 soapServer.cpp、soapC.cpp、soapH.h、soapStub.h 文件,新建 VC 2008 基于 Win32 控制台的应用程序,作为WebServer服务端,提供 ns__add、ns__sub、ns__mul、ns__div(即加、减、乘、除)四个WebServer服务的接口,并支持利用提供 calcsoap.wsdl 文件给 soap UI 测试工具进行测试。
    2022-03-18 13:16:42下载
    积分:1
  • Forcal是一个对字符表达式进行编译计算的动态链接库,具有数值计算、关系运算、逻辑运算、字符处理、流程控制、函数调用等许多的可编程功能。它的部分文档是由C...
    Forcal是一个对字符表达式进行编译计算的动态链接库,具有数值计算、关系运算、逻辑运算、字符处理、流程控制、函数调用等许多的可编程功能。它的部分开发文档是由C++开发,有的用Delph开发,还有一少部分用到了VB,这就铸就了它不但可以在C++开发环境下调用,也可在VB和DELPHI中方便调用,很方便。 -Forcal is a calculation of the character expression to compile a dynamic link library, with numerical calculation, relational operators, logical operators, character handling, process control, function calls, and many other programmable features. It is part of the development documentation developed by the C++, some of Delph development, there is a small part of the use of the VB, which cast it could not only C++ development environment called VB and DELPHI can also be conveniently invoked, it is convenient .
    2022-11-25 10:30:03下载
    积分:1
  • 在VB中查找和替换字符串的例子程序,哈
    在VB中查找和替换字符串的例子程序,哈-in VB search and replace strings of examples of procedures, Kazakhstan
    2023-03-29 19:45:03下载
    积分:1
  • 运行三维对象源代码
    运行三维对象源代码
    2022-09-24 09:05:03下载
    积分:1
  • 编译原理实验用来识别无符号数,代码不长.
    编译原理实验用来识别无符号数,代码不长.-compiler principle experiment with symbols used to identify the number code is not long.
    2023-04-03 04:45:03下载
    积分:1
  • 调用摄像头代码
    调用摄像头的代码,用mfc做的可以调用自己电脑的摄像头,当作练习了,没有太多复杂的东西,菜鸟当练手了......
    2022-01-31 11:26:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载