NCA-GENL - Core Machine Learning and AI Knowledge - Section 1.5

Apply graph algorithms to analyse complex networks.

Understand how graphs represent entities and relationships, and apply algorithms such as breadth-first search, shortest path, and community detection to analyse complex networks. Recognise the use cases - fraud detection, recommendation systems, and knowledge graphs - where graph-based methods outperform tabular approaches.

Graph algorithms

Practice question for this objective

Free sampleCore Machine Learning and AI Knowledgemedium

A recommendation system models users and items as nodes, with edges representing interactions. Which graph algorithm is most appropriate for identifying tightly connected communities of users who share similar item preferences?

  • ADijkstra's shortest-path algorithm applied to weighted interaction edges
  • BPageRank centrality computed iteratively across the bipartite graph
  • CBreadth-first search traversal seeded from a single high-degree user node
  • DA community detection algorithm such as Louvain modularity optimisation Correct
Understand how community detection algorithms partition graph networks to reveal clusters of related nodes. Louvain modularity optimisation and similar community detection methods (such as Girvan-Newman or label propagation) operate by evaluating the modularity metric, which measures the density of edges within communities relative to a random baseline. They iteratively merge or split groups to maximise this metric, producing partitions that correspond to real-world communities. This is the standard approach for finding user or item clusters in recommendation graphs, where shortest-path or ranking algorithms address different analytical questions.

Why A is wrong: Shortest-path algorithms find optimal routes between two nodes, not groupings of densely connected nodes. Applying Dijkstra's here would reveal how closely two specific users are connected but would not partition the graph into coherent communities of similar preference.

Why B is wrong: PageRank scores nodes by their relative importance based on incoming link weight, which is useful for ranking items by popularity. It does not group nodes into communities, so it would not reveal clusters of users with overlapping preferences.

Why C is wrong: Breadth-first search explores nodes layer by layer from a starting point and is useful for reachability and level-order traversal. It does not optimise any clustering criterion and therefore cannot reliably partition users into communities of shared preference.

Why D is correct: Community detection algorithms like Louvain partition a graph by maximising modularity, the degree to which edges fall within groups rather than between them. This directly identifies clusters of users whose interaction patterns are more similar to each other than to the rest of the network.

See more NCA-GENL practice questions, answers explained.

More in this domain

Back to all Core Machine Learning and AI Knowledge objectives, or the NCA-GENL cert hub.

Examworthy is not affiliated with or endorsed by NVIDIA. Original, blueprint-aligned practice material only.