Simultaneous Localization and Mapping has three dominant algorithmic families, and the right choice depends less on brand-name performance than on one central trade-off: how much computation you can afford versus how globally consistent your map must be. EKF-SLAM estimates a robot's pose and landmarks sequentially through an Extended Kalman Filter, but its time and memory complexity scale quadratically with the number of landmarks, which caps it at small maps. Graph-SLAM reframes the whole problem as a global optimization over a graph of poses and constraints, distributing error across the map and scaling to far larger environments. Visual SLAM is not really a third back-end rival: it is a front-end built around camera data, and it typically plugs into a filtering or graph-based back-end to produce a final map.
Understanding the SLAM Problem and Its Core Components
SLAM asks a robot to build a map of an unknown environment while simultaneously tracking its own position within that map — a chicken-and-egg problem, because each task depends on the other. Despite the variety of algorithms, nearly every practical system splits the work into two interleaved functions. A research paper on visual EKF-SLAM published through PMC describes this split directly: the front-end detects and tracks features from sensor data, while the back-end interprets those features as landmark observations and estimates both the landmarks and the robot's positions with respect to a chosen reference frame.
Course materials from the University of Washington's robotics curriculum reinforce this architecture, showing a typical SLAM system divided into a front end and a back end, with loop closures connecting the two. The front-end is sensor-specific work: extracting features, tracking them across frames, and producing motion estimates. The back-end is where the mathematical heavy lifting happens — estimating the full state and minimizing accumulated error. Understanding this division is essential, because the three SLAM families you are choosing between differ mainly in which half of the pipeline they define.
EKF-SLAM: Sequential Estimation with Kalman Filters
EKF-SLAM is the classical filtering approach. The robot maintains a single state vector containing its own pose plus the positions of every landmark it has observed, along with a covariance matrix describing the uncertainty in all of those estimates. At every step, the filter predicts the new state from motion, then updates it when a landmark is re-observed. As Jeremy Cohen's technical overview for robotics engineers explains, the appeal is that at every step the system predicts and updates the position of each feature and of the camera itself, keeping a running, self-consistent estimate.
The cost of that consistency is computational. The University of Washington lecture notes list the limitations of EKF-SLAM explicitly: time complexity of O(n²) and memory complexity of O(n²), where n grows with the state. The quadratic scaling arises because every update touches the full covariance matrix, which encodes correlations between every pair of landmarks. The notes illustrate the consequence with a large city navigation scenario of 3.3 kilometers from the DARPA ASPN project — precisely the kind of map that becomes difficult for EKF-SLAM to handle. For a small room with a handful of landmarks, this is manageable; for a city block, it is not.
