#include<stdio.h> void main(void) {int n,k,derivata,a[10],i printf("n=") scanf(" d",&n) for(i=0 i<=n i++) { printf("a[ d]=",i) scanf(" d",&a[i]) } printf("k=") scanf(" d",&k) for(derivata=1 derivata<=k derivata++) { for(i=0 i<=n i++) a[i]=a[i]*(n-i) n-- for(i=0 i<=n i++) printf(" d ",a[i]) printf("\n") }}
標簽: void derivata include printf
上傳時間: 2017-09-17
上傳用戶:duoshen1989
本程序用C語言實現了集成神經網絡解決廣義異或問題。用神經網絡集成方法做成表決網,可克服初始權值的影響,對神經網絡分類器來說:假設有N個獨立的子網,采用絕對多數投票法,再假設每個子網以1-p的概率給出正確結果,且網絡之間的錯誤不相關,則表決系統發生錯誤的概率為 Perr = ( ) pk(1-p)n-k 當p<1/2時 Perr 隨N增大而單調遞減. 在工程化設計中,先設計并訓練數目較多的子網,然后從中選取少量最佳子網形成表決系統,可以達到任意高的泛化能力。
上傳時間: 2015-05-03
上傳用戶:kiklkook
給定n個整數a , a , ,an 1 2 組成的序列。序列中元素i a 的符號定義為: ï î ï í ì - < = > = 1 0 0 0 1 0 sgn( ) i i i i a a a a 符號平衡問題要求給定序列的最長符號平衡段的長度L,即: þ ý ü î í ì = + - = å = £ £ £ max 1| sgn( ) 0 1 j k i i j n k L j i a 。 例如,當n=10,相應序列為:1,1,-1,-2,0,1,3,-1,2,-1 時,L=9。
上傳時間: 2015-10-28
上傳用戶:xaijhqx
How the K-mean Cluster work Step 1. Begin with a decision the value of k = number of clusters Step 2. Put any initial partition that classifies the data into k clusters. You may assign the training samples randomly, or systematically as the following: Take the first k training sample as single-element clusters Assign each of the remaining (n-k) training sample to the cluster with the nearest centroid. After each assignment, recomputed the centroid of the gaining cluster. Step 3 . Take each sample in sequence and compute its distance from the centroid of each of the clusters. If a sample is not currently in the cluster with the closest centroid, switch this sample to that cluster and update the centroid of the cluster gaining the new sample and the cluster losing the sample. Step 4 . Repeat step 3 until convergence is achieved, that is until a pass through the training sample causes no new assignments.
標簽: the decision clusters Cluster
上傳時間: 2013-12-21
上傳用戶:gxmm
采用逆序法生成排列 從n個空位開始,從左到右吧這些位置標為1,2,……n。 1:由于在排列中要有 個整數在1的前面,因為必須把1放在位置號為 +1的位置上。 2:由于在排列中要有 個比2大的整數在2的前面,而且這些整數還沒有被插進來,因此必須給這些數留出 個空位置,于是,把2放在第 +1的空位置上。 • • • K:(一般的一步)由于在排列中要有 個整數在k的前面,而且這些整數還沒有被插進來,因此必須給這些數留出 個空位置。在本步驟開始時空位置的個數是n-(k-1)=n-k+1。我們把k放在從左邊數的第( +1)的空位置上。既然 ≤n-k,因此就有 +1≤n-k+1,從而這樣一個空位置就被確定下來。 • • • N:把n放在剩下的一個空位置上
標簽:
上傳時間: 2013-12-15
上傳用戶:獨孤求源
N位同學站成一排,音樂老師要請其中的(n-k)位同學出列,使得剩下的K位同學排成合唱隊形。 合唱隊形是指這樣的一種隊形:設K位同學從左到右依次編號為1,2…,K,他們的身高分別為T1,T2,…,TK, 則他們的身高滿足T1 < T2 < ...< Ti > Ti+1 > … > TK (1 <= i <= K)。 你的任務是,已知所有N位同學的身高,計算最少需要幾位同學出列,可以使得剩下的同學排成合唱隊形。 Input 輸入包含若干個測試用例。 對于每個測試用例,輸入第一行是一個整數N(2<=N<=100),表示同學的總數。第二行有N個整數,用空格分隔,第i個整數Ti(130<=Ti<=230)是第i位同學的身高(厘米)。當輸入同學總數N為0時表示輸入結束。 Output 對于每個測試案例,輸出包括一行,這一行只包含一個整數,就是最少需要幾位同學出列。 Sample Input 8 186 186 150 200 160 130 197 220 3 150 130 140 0 Sample Output 4 1
標簽:
上傳時間: 2016-12-06
上傳用戶:jackgao
卷積碼是一種有記憶的編碼,在任意給定的時間單元處,編碼器的n個輸出不僅與此時間單元的k個輸入有關,而且也與前m個輸入有關。卷積碼通常表示為:(n,k,m) 本次仿真采用(2,1,3)卷積碼。
上傳時間: 2015-06-11
上傳用戶:liglechongchong
離散01串問題,(n,k)01 串定義為:長度為n 的01 串,其中不含k 個連續的相同子串。對于給定的正整數n 和k,計算(n,k)01 串的個數。
標簽: 離散
上傳時間: 2015-11-14
上傳用戶:sardinescn
Author: wei liu Summary: simulation of binary and non-binary bch decoder MATLAB Release: R14SP1 Required Products: Communications Toolbox Description: simulation of binary bch decoding algorithm for bch(n, k) with t bits error correction capability.
標簽: simulation non-binary Summary Release
上傳時間: 2014-01-10
上傳用戶:frank1234
stats 用于檢驗回歸模型的統計量,有三個數值:相關系數r2、F值、與F對應的概率p.相關系數r2越接近1,說明回歸方程越顯著;F > F1-α(k,n-k-1)時拒絕H0,F越大,說明回歸方程越顯著;與F對應的概率p 時拒絕H0,回歸模型成立.
上傳時間: 2014-01-18
上傳用戶:佳期如夢