Google Interview Question


Country: United States
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
1
of 1 vote

For large graph with single machine i.e. limitedspace , We can use Map/ Reduce systems and Key/ value stores.

- RAJEEV RANJAN February 04, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Store the adjacency list for each vertex in a different machine.

- EZ January 31, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 3 votes

what if Adj list in doesn't fit on one machine? how do you split the adj list?

- Matt Chad February 01, 2016 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Store the adjacency list for each vertex in a separate machine,

- EZPZ January 31, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Adj list, but in following way:
Distributed hash map.
A key is either a node or pair of nodes.
If it is a node, a value is a pair that consists of key node and the first node in adjacency list.
If it is a pair. The key consists of node for who the adjacency list and the current node in adj list. A value consists of node for who the adjacency list and the next node in adj list.

- CT February 02, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Group the Nodes ( n1,n2,n3,n5,......) and store them to different Machine.
now mark the different machines as node of graph(N1,N2,N3,N4, ....).

and store a Adjacency list which keep trace of major nodes.

- Himanshu kushwah February 03, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

(1) Use Adjacency Matrix and create submatrix (as per node capacity).
(2) Create Adjacency Matrix for Vertices identifiers for finding out index of edge.
(3) Create Vertices identifiers and servers map to find out from which server to fetch submatrix.

- ER.HarvinderSingh April 26, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Hadoop is best option for such kind of system

- eric.brooksb April 26, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What kind of system should it be? Should it require high performance online access or Should it be used for data warehouse analytics batch processing? I would initially suggest Cassandra for the first and Hadoop for the latter.

- guilhebl May 05, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Use adjacency matrix, divide the matrix across machines.

- gottheroot June 24, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Use Bulk-Synchronous-Parallel (BSP) algorithm.

- Neel Shah January 24, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Bulk-Synchronous-Parallel (BSP) algorithm.

- Neel Shah January 24, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More