Skip to content

Instantly share code, notes, and snippets.

View chanmol1999's full-sized avatar
🎯
Focusing

Anmol Chaddha chanmol1999

🎯
Focusing
View GitHub Profile
@chanmol1999
chanmol1999 / GSoC_2020_Work_Report.md
Last active September 1, 2020 02:14
GSoC 2020 Work Submission

GSoC logo

GSoC 2020 SUBMISSION REPORT

Student Anmol Chaddha
@jgcoded
jgcoded / traveling_salesman.cpp
Last active January 22, 2024 09:43
Traveling Salesman solution in c++ - dynamic programming solution with O(n^2 * 2^n).
#include <vector>
#include <iostream>
using namespace std;
/**
\brief Given a complete, undirected, weighted graph in the form of an adjacency matrix,
returns the smallest tour that visits all nodes and starts and ends at the same
node. This dynamic programming solution runs in O(n^2 * 2^n).