## Search found 48 matches

Tue Feb 06, 2007 2:05 pm
Forum: Volume 1 (100-199)
Topic: 186 - Trip Routing
Replies: 15
Views: 4673

### 186 PE

Why PE please anyone check this and ryply: printf("From To Route Miles\n"); printf("-------------------- -------------------- ---------- -----\n"); for( i=0; i<x-1; i++){ s = find(ans ,ans[i+1]); printf("%-21s%-21s%-12s%4d\n",ans ,ans[i+1],road[s].r_name,road[s].dis); sum += road[s].dis; } printf(" ...
Tue Feb 06, 2007 2:02 pm
Forum: Algorithms
Topic: UCS
Replies: 3
Views: 3406

### UCS

Anyone tell about UCS algorithm with the procedure
Wed Aug 23, 2006 12:34 pm
Forum: Volume 4 (400-499)
Topic: 442 - Matrix Chain Multiplication
Replies: 21
Views: 3684

### 442: Why WA!

Here is my programm : Why WA?? Pls Help me.......... #include<stdio.h> struct matrix{ int r,c; char name; }mat[1000]; char stack[100],nam[50]; long cast,flag = 1,top,n,k; char find(char a,char b){ int i,rowa,rowb,cola,colb,g_a,g_b; for(i=0; i<n; i++){ if(mat .name == a){ rowa = mat .r; cola = mat .c...