From 50f620a3c3443b90d873d045f945fe71e7387155 Mon Sep 17 00:00:00 2001 From: Ayushi C <67193440+AyushiChakrabarty@users.noreply.github.com> Date: Fri, 18 Sep 2020 10:23:54 +0530 Subject: [PATCH] Create Topological Sort_Decrease and Conquer --- Topological Sort_Decrease and Conquer | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Topological Sort_Decrease and Conquer diff --git a/Topological Sort_Decrease and Conquer b/Topological Sort_Decrease and Conquer new file mode 100644 index 0000000..e5cef63 --- /dev/null +++ b/Topological Sort_Decrease and Conquer @@ -0,0 +1,46 @@ +#include + +using namespace std; + +int main(){ + int i,j,k,n,a[10][10],indeg[10],flag[10],count=0; + + cout<<"Enter the no of vertices:\n"; + cin>>n; + + cout<<"Enter the adjacency matrix:\n"; + for(i=0;i>a[i][j]; + } + + for(i=0;i