python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
C++ OpenMP Breadth First Search
I'm working on an implementation of breadth first search using C++.
My implementation looks something like;
BFS.h
#pragma once
#include "Includes.h"
class BFS {
int _num_v;
int _num...
MegaMagnum
Votes: 0
Answers: 0
Google Foobar Prepare the Bunnies' Escape (BFS/A* search, Python)
I've been taking the Google Foobar challenge and I'm stuck with a solution I'm pretty certain is correct, but won't pass 2 tests of the challenge.
Given a 2D Array, consisting of 0s and 1s, as an inpu...
Velcorn
Votes: 0
Answers: 1
how to use bfs with random generated numbers in c++?
Hi can somebody help me please?
so far this is my code:
#include<iostream>
#include <list>
#define NOE 20
#define NOV 10
using namespace std;
class Graph
{
int V;
list<int>...
drot
Votes: 0
Answers: 0
Using bfs to find the shortest path from a vertices to another
Bfs start from vertices 1 and find the distance need to get to another vertices x.
I code a bfs using template but it comes out bug and I am too noob in cpp to debug.Pls help me to debug.This is the c...
Isaac
Votes: 0
Answers: 1