搜索结果
找到约 950 项符合
input-output 的查询结果
数学计算 算法实现题1-5 最大间隙问题 « 问题描述: 最大间隙问题:给定n 个实数x , , xn 1 2 
算法实现题1-5 最大间隙问题
&laquo 问题描述:
最大间隙问题:给定n 个实数x , , xn 1 2 &#61516 ,求这n 个数在实轴上相邻2 个数之间的最
大差值。假设对任何实数的下取整函数耗时O(1),设计解最大间隙问题的线性时间算法。
&laquo 编程任务:
对于给定的n 个实数n x , x , , x 1 2 &#61516 ,编程计算它们的最大间隙。
& ...
数学计算 Ex4-22 单射函数问题 « 问题描述: 设函数f将点集S = {0,1, , n -1}映射为f (S) = { f (i) | iÎ S} Í
Ex4-22 单射函数问题
&laquo 问题描述:
设函数f将点集S = {0,1,&#61516 , n -1}映射为f (S) = { f (i) | i&Icirc S} &Iacute S 。单射函数问题要
从S中选取最大子集X &Iacute S 使f (X )是单射函数。
例如,当n=7, f (S) = {1,0,0,2,2,3,6} &Iacute S 时, X = {0,1,6} &Iacute S 是所求的最大子集。
&laquo 编程任务:
...
matlab例程 % EM algorithm for k multidimensional Gaussian mixture estimation % % Inputs: % X(n,d) - input da
% EM algorithm for k multidimensional Gaussian mixture estimation
%
% Inputs:
% X(n,d) - input data, n=number of observations, d=dimension of variable
% k - maximum number of Gaussian components allowed
% ltol - percentage of the log likelihood difference between 2 iterations ([] for none)
% ...
加密解密 Tasks Read the textbook about the details of Vigenére Cipher. Implement the algorithm by C or C++.
Tasks
Read the textbook about the details of Vigenére Cipher.
Implement the algorithm by C or C++.
Requirements
You do this lab in a group of two students.
Your program should have input and output as follows:
csci>a.out
--> Please input the key:
receptive
--> Please input the plain text:
wearedis ...
通讯/手机编程 % decode with soft-input viterbi algorithm 硬判决 % //k=4,r=1/2 %输入数据为软信息
% decode with soft-input viterbi algorithm 硬判决
% //k=4,r=1/2
%输入数据为软信息,并且数据为均值为1的BPSK调制,如果均值为MEAN,那么62,63,103,104行应做相应修改
单片机开发 This example code takes and averages 2048 analog measurements from input P1.4 using ADC0, then pri
This example code takes and averages 2048 analog measurements from input
P1.4 using ADC0, then prints the results to a terminal window via the UART.
Linux/Unix编程 sorting input lines developed by C++ in linux environment
sorting input lines developed by C++ in linux environment
数据结构 Description 为了宣传本次“网宿科技杯”厦门大学第五届程序设计竞赛
Description
为了宣传本次“网宿科技杯”厦门大学第五届程序设计竞赛,系里面做了两张精美的海报。经过了精确的计算,为了达到最佳美观效果,每张海报都有自己最佳的粘贴位置。但是现在问题是,如果两张海报都要求贴在最佳位置时,很有可能有部分地方会重叠在一起。现在您来判断一下这两张海报是否重叠。
Input
...
单片机开发 The goal of our final project was to design an efficient elevator simulator that can accept input fr
The goal of our final project was to design an efficient elevator simulator that can accept input from a user and mechanically operate (on a small scale) a system of 4 floors and 3 elevators using pulleys and stepper motors. Users enter input using physical pushbuttons or the computer. This input is ...
压缩解压 huffman decode all you need is input a data so that it will decode
huffman decode
all you need is input a data
so that it will decode