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

Set T [0: n

于 2022-05-27 发布 文件大小:6.74 kB
0 170
下载积分: 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 个回复

  • had not done a good, scientific calculators!
    一个做得还不错的科学型计算器!-had not done a good, scientific calculators!
    2022-04-12 03:19:55下载
    积分:1
  • A*算法解决八数码
    题目    The 15-puzzle has been around for over 100 years; even if you don"t know it by that name, you"ve seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on it, and all packed into a 4 by 4 frame with one tile missing. Let"s call the missing tile "x"; the object of the puzzle is to arrange the tiles so that they are ordered as:   1  2  3  4  5  6  7  8  9 10 11 12 13 14 15  x where the only legal operation is to exchange "x" with one of the tiles with which it shares an edge. As an example, the following sequence of moves solves a slightly scrambled puzzle: 
    2022-02-06 16:32:40下载
    积分:1
  • 操作权限的动态控制的例子pb
    操作权限的动态控制的例子pb-operational competence of the dynamic control of the examples pb
    2023-05-09 12:00:03下载
    积分:1
  • 分形图的实现:c++源代码,分形树由递归算法生成。
    分形图的实现:c++源代码,分形树由递归算法生成。-Fractal graphic sample
    2022-03-20 11:38:58下载
    积分:1
  • 混音程序
    用C++编写的两路音频混音程序,很适合初学者。 Mixer.dsp     This file (the project file) contains information at the project level and     is used to build a single project or subproject. Other users can share the     project (.dsp) file, but they should export the makefiles locally. Mixer.h     This is the main header file for the application.  It includes other     project specific headers (including Resource.h) and declares the     CMixerApp application class. Mixer.cpp     This is the main application source file that contains the application     class CMixerApp.
    2022-03-12 21:29:31下载
    积分:1
  • 有100个VC的编程实例
    有100个VC的编程实例-have one hundred examples of programming by VC++
    2022-06-17 04:21:41下载
    积分:1
  • windows media player ATL com控件例子
    windows media player ATL com控件例子
    2023-01-10 14:35:03下载
    积分:1
  • 这是我们生活中常用的人民币大小写转换程序C代码
    这是我们生活中常用的人民币大小写转换程序C代码-This is commonly used in our lives RMB case the conversion process C code
    2022-06-28 10:15:05下载
    积分:1
  • 一个c写的server,让系统给该server分配端口号,而不是由手动指定,以解决一个服务器上运行多个server而端口冲突的情况。...
    一个c写的server,让系统给该server分配端口号,而不是由手动指定,以解决一个服务器上运行多个server而端口冲突的情况。- writen by c , a server, the port number of which can be allocated by the system.
    2022-02-24 12:40:14下载
    积分:1
  • PowerBuilder的JSP
    2022-01-25 18:18:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载