ZEN

by HCbound


알고리즘분석

이대로 한번 코딩 해봐야겠다.

아래는 prim's graph 알고리즘에 대한 내 설계 내용

input : structure array 'tree',priority queue, table(as fringe set)
output : weight of MST

choose aux vertex a
tree.add(a);
makeheap(); // by distance from a to vertices without a
while(heap.nomore)
{
struct tempset = poptop()
tree.add(tempset)
totalweight += tempset.d
for(tree.ind = 0 -> tree.end.ind)
{
for(heap.ind = 0 -> heap.end.ind)
{
if(tree.ind.cnum  == heap.ind.cnum)
{
if(tree.ind.distance < heap.ind.distance)
heap.ind.distance = tree.ind.distance
}
}
}
fixminheap();
}

print.totalweight


priority queue 에서 사용하는 배열에 대한 직접 접근이 필요하다.

blending 을 이용하여 그럴듯한 반사효과 흉내내기

그러나 여백이 부족하여 여기엔 적지 않는다

그래픽스

이거 뭐 이렇게 외울게 많지

어허 ....참...

priority queue 하나 에러없이 코딩을 못하네...

에딧플러스가 참 심플한 에디터이긴 한데.. 아직 쓸 능력은 안되는구나

1 2 3 4 5 6 7 8 9 10 다음