Dorian Wood from Fremont was looking for the 7 essentials to writing a killer gamsat essay
Demarco Maguire found the answer to a search query the 7 essentials to writing a killer gamsat essay
http://essayerudite.com/images/banner/500x500.jpg
essay writing service ...
Search found 24 matches: 11838
Searched query: 11838
- Tue Aug 20, 2019 6:45 am
- Forum: Volume 5 (500-599)
- Topic: 500 - Table
- Replies: 1374
- Views: 261532
- Thu Jan 16, 2014 11:43 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
This problem can be solved by simple DFS.
- Mon Jan 06, 2014 8:13 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
I used Tarjan's SCC Algorithm to find the number of SCC in the given graph. The answer is 1 if number of SCC is 1, else the answer is 0. Now this gives WA and I can't find why. So please help me. This is the first time I'm doing SCC.
#include <bits/stdc++.h>
using namespace std;
#ifdef __GNUC ...
#include <bits/stdc++.h>
using namespace std;
#ifdef __GNUC ...
- Sun Nov 14, 2010 10:00 am
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
This problem also sloved by simple dfs or mst
- Sun Nov 14, 2010 5:46 am
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
your implementation of tarjans algorithm is not correct.
see http://en.wikipedia.org/wiki/Tarjan's_strongly_connected_components_algorithm
there are some pop operations you are missing
int pp;
void tarjan( int x ){
ind[ x ] = c;
low[ x ] = c;
c ++;
node.push( x );
for( int i = 1; i <= N; i ...
see http://en.wikipedia.org/wiki/Tarjan's_strongly_connected_components_algorithm
there are some pop operations you are missing
int pp;
void tarjan( int x ){
ind[ x ] = c;
low[ x ] = c;
c ++;
node.push( x );
for( int i = 1; i <= N; i ...
- Thu Nov 11, 2010 7:56 am
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
#include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<cctype>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<sstream>
#include<vector>
using namespace std;
typedef vector<int> vi;
typedef vector< vi > vii;
typedef ...
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<cctype>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<sstream>
#include<vector>
using namespace std;
typedef vector<int> vi;
typedef vector< vi > vii;
typedef ...
- Sun Oct 31, 2010 7:08 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
Thanks Got accepted now. I did a silly pen mistake.
- Sat Oct 30, 2010 10:44 am
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
Well, You can simply use Floyd-Warshall to get AC in this question, that will suffice for it 
Regards,
SITZ
Regards,
SITZ
- Fri Oct 29, 2010 8:38 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
I used tarjan's algorithm. I am getting wrong answer. I spent a lot of time to this but did not get the reason. Can any one help me to fix my error.
Here is my code:
Here is my code:
Code: Select all
Cut After Accepted
- Sat Oct 02, 2010 6:29 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
Floyd should get TLE with a good data set.
- Fri Oct 01, 2010 2:58 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
May be bad tests there....((
Or you make a mistake in complexity of your algo...
Your implementation with queue got TLE,because it's O(N^3)!
Or you make a mistake in complexity of your algo...
Your implementation with queue got TLE,because it's O(N^3)!
- Fri Oct 01, 2010 2:48 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
Well, I thought the same way, but, actually it did pass 
For ur belief you can check the verdict of judge here : http://felix-halim.net/uva/hunting.php? ... hrivastava
For ur belief you can check the verdict of judge here : http://felix-halim.net/uva/hunting.php? ... hrivastava
- Fri Oct 01, 2010 2:44 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
I couldn't belive that Floyd could get Ac here....
it complexity O(n^3), where n=2000, how it could be pass at 2 sec???
it complexity O(n^3), where n=2000, how it could be pass at 2 sec???
- Fri Oct 01, 2010 2:20 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
Hi Igor9669 !
But, I don't understand how people can't understand the simple question that I have posted here :(
I said I have got Accepted with a time of around 0.338 s using Floyd-Warshall Algorithm...
I just wanted to ask if the above implementation using queues can be optomized to get Ac or ...
But, I don't understand how people can't understand the simple question that I have posted here :(
I said I have got Accepted with a time of around 0.338 s using Floyd-Warshall Algorithm...
I just wanted to ask if the above implementation using queues can be optomized to get Ac or ...
- Fri Oct 01, 2010 2:14 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11838 - Come and Go
- Replies: 22
- Views: 11264
Re: 11838 - Come And Go
Certanly you will get TLE on this problem with Floyd!
It could be solve with simple dfs or bfs with little modification!
It could be solve with simple dfs or bfs with little modification!