• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Help with a Computer Science Graphing Problem

dexvx

Diamond Member
Yes it is me again, this time in data structures, we're doing computer graphs. The homework was released last week Friday, and I am having troubles as to how to do it.

I know the concept of it is to basically map out the graphs from 2 seperate files and to backtrack them and at the same time compare the similarities. But I cannot think of any efficient algorithms for this scenario (especially ones with a large number of nodes). I dont entirely understand the ISOMORPHISM concept, as to what constitutes a match.

Another minor question would be how to make the executable accept commands from the command line:
Match gmfile gdfile p|b , where Match is the .exe

I think it has something to do with the default argument of argc[] in main() {}

Heres the HMK link.
 
In your example:
argv[0] == match
argv[1] == gmfile
argv[2] == gdfile
argv[3] == p|b
argc = 4

As for the algorithm, uh... brute force? 🙂 I dunno.
 
Originally posted by: mugsywwiii
In your example:
argv[0] == match
argv[1] == gmfile
argv[2] == gdfile
argv[3] == p|b
argc = 4

Thats what I thought, I never used command line fuctions before though.

Now for the algorith planning 🙂

Well, the read functions are fully implemented so therefore I only have to put the data into a data structure and compare.
 
Back
Top