Skip to content

whtseng1/NTHU_CS_DS_2018Fall_HW4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NTHU_CS_DS_2018Fall_HW4

Implement basic graph data structure and functions

implementation

•addEdge
•shortest path
•minimum spanning tree
•two color

Input

Input starts with an integer n indicating the number of nodes in the graph, 0 <= n<= 2500.
Then, a set of m edges, 0<= m<=950000, and k command, 0<=0k<=30, are given.
The following four commands might appear multiple times (even interleaving) add, shortest_path, mst_weight, two_colorable.

Output

Print the outputs of the given commands.

Keywaords

NTHU, DS, Data Structure, Homework, Graph.

Reference

http://140.114.86.238/problem/12063/

Note

This one is a bitch. I fucked up everything. Still gets AC though.

About

Implement basic graph data structure and functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages