Given an undirected graph G = (V, E), the (uniform, unweighted) sparsest cut problem is to find a vertex subset S subset of V minimizing vertical bar E(S, (S) over bar)vertical bar/(vertical bar S vertical bar vertical bar(S) over bar vertical bar). We show that this problem is NP-complete, and give polynomial time algorithms for various graph classes. In particular, we show that the sparsest cut problem can be solved in linear time for unit interval graphs, and in cubic time for graphs of bounded treewidth. For cactus graphs and outerplanar graphs this can be improved to linear time and quadratic time, respectively. For graphs of clique-width k for which a short decomposition is given, we show that the problem can be solved in time O(n(2k+1)), where n is the number of vertices in the input graph. We also establish that a running time of the form n(O(k)) is optimal in this case, assuming that the Exponential Time Hypothesis holds. (C) 2012 Elsevier B.V. All rights reserved.