代码搜索:Select
找到约 10,000 项符合「Select」的源代码
代码结果 10,000
www.eeworm.com/read/168218/9931667
cpp select.cpp
// find k'th smallest element
#include
#include "select.h"
void main(void)
{
int y[16] = {20, 30, 4, 2, 9, 7, 1, 2, 10, 3, 40, 22, 12, 14, 8, 100};
int n = 15, x;
www.eeworm.com/read/168218/9931678
h select.h
// file select.h
// find the k'th smallest element
#ifndef Select_
#define Select_
#include "xcept.h"
#include "swap.h"
template
T select(T a[], int l, int r, int k)
{// Return
www.eeworm.com/read/168218/9932250
out select.out
The 1 element is 1
The 2 element is 2
The 3 element is 2
The 4 element is 3
The 5 element is 4
The 6 element is 7
The 7 element is 8
The 8 element is 9
The 9 element is 10
The 10 element is 1
www.eeworm.com/read/168218/9932666
cpp select.cpp
// find k'th smallest element
#include
#include "select.h"
void main(void)
{
int y[16] = {20, 30, 4, 2, 9, 7, 1, 2, 10, 3, 40, 22, 12, 14, 8, 100};
int n = 15, x;
www.eeworm.com/read/168218/9932843
h select.h
// file select.h
// find the k'th smallest element
#ifndef Select_
#define Select_
#include "xcept.h"
#include "swap.h"
template
T select(T a[], int l, int r, int k)
{// Return
www.eeworm.com/read/167585/9959825
c select.c
/*
* Boa, an http server
* Copyright (C) 1995 Paul Phillips
* Some changes Copyright (C) 1996 Charles F. Randall
* Some changes Copyright (C) 1996
www.eeworm.com/read/362647/9987804
m select.m
function s1=select(v0,f,population)
%轮盘赌选择
matrixsum=sum(f);
roulette=cumsum(f);%求向量累加
choiseP=roulette/matrixsum;%得选择概率
for i=1:population
tempP=rand(1);
if (tempP
www.eeworm.com/read/166804/9997330
m select.m
function y=select(fit,N)
P=rand(1,N);
for i=1:N
tem_p=find(fit>=P(i));
s(i)=tem_p(1);
end
y=s;
www.eeworm.com/read/166698/10007517