vj1105 神经网络

Vj1105 - c[i i/c[i]=sum(g[j,i*c[j-u[i c[i]>0 c[i]=c[i const maxn=200 var n,p:integer c,u:array[0.maxn of longint g:array[0.maxn,0.maxn of integer

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //¼ÇÒ仯ËÑË÷ //Éè c[i] Ϊ i µÄ״̬ //c[i]=sum(g[j,i]*c[j])-u[i] / //±ÉÈ˵ÄÎÊÌâ //Èç¹û³õʼ c[i]>0 ÔòËüÊÇÊäÈë²ã c[i]=c[i] //Èç¹ûËѹýÒ»¸öµã Ï´ÎÓöµ½¾Í²»ÔÙËÑÁË£¨¼ÇÒ䣩 ·ñÔò c[i] »áÀÛ¼Ó¶àÁË / const maxn=200; var n,p:integer; c,u:array[0. .maxn] of longint; g:array[0. .maxn,0. .maxn] of integer; link:array[0. .maxn,0. .maxn] of boolean; v:array[0. .maxn] of boolean; flag:boolean; procedure dfs(k:integer); var i:integer; begin if c[k]>0 then exit;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2011 for the course CS 001 taught by Professor 001 during the Spring '11 term at Shandong University.

Page1 / 2

Vj1105 - c[i i/c[i]=sum(g[j,i*c[j-u[i c[i]>0 c[i]=c[i const maxn=200 var n,p:integer c,u:array[0.maxn of longint g:array[0.maxn,0.maxn of integer

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online