Pallavi-Pamulapati / Tree-Search-Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini-Project-Team56

TA incharge

  • Arpan Dasgupta

Team Members email

Compilation Instructions

Steps for greedy search

  1. node_comparator should look like this
bool node_comparator(node *a, node *b)
{
    // User puts in the node comparator here
    return a->value > b->value; // A sample comparator
}
  1. Write this command on terminal to compile
gcc node.c priority_queue.c main.c  
  1. To run the File
./a.out
  1. Give the test-case of your choice

Steps for BFS

  1. node_comparator should look like this
bool node_comparator(node *a, node *b)
{
    // User puts in the node comparator here
    return a->seen_time < b->seen_time; // A sample comparator
}
  1. Write this command on terminal to compile
gcc node.c priority_queue.c main.c  
  1. To run the File
./a.out
  1. Give the test-case of your choice

Steps for DFS

  1. node_comparator should look like this
bool node_comparator(node *a, node *b)
{
    // User puts in the node comparator here
    return a->seen_time > b->seen_time; // A sample comparator
}
  1. Write this command on terminal to compile
gcc node.c priority_queue.c main.c  
  1. To run the File
./a.out
  1. Give the test-case of your choice

About


Languages

Language:C 100.0%