For each

$A\subset \mathbb{N}$, the set

${E}_{A}\subset (0,1)$ is defined to be those irrationals

$\alpha $ with continued fraction expansion given by

$\alpha =[0;{a}_{1},{a}_{2},\cdots ]$ with

${a}_{i}\in A$. When the cardinality of

$A$ is finite, such

$\alpha $ are badly approximable and

${E}_{A}$ is of measure 0. When

$A$ has just one element,

${E}_{A}$ consists of a single quadratic irrational. When

$2\le \text{Card}A\le N$,

${E}_{A}$ is a Cantor-type set with a ‘fractal dust’ structure. The author presents a polynomial time algorithm for determining the Hausdorff dimension of

${E}_{A}$ to within

$\pm {2}^{-N}$ using

$O\left({N}^{7}\right)$ operations. An implementation of the code in Mathematica is included. The Hausdorff dimension is 1/2 the unique value for which a function

$\lambda $ related to a general zeta function is unity. In an interesting application of operator theory, the method uses results concerning the spectrum of an operator associated with the invariant measure for the continued fraction process. A number of conjectures suggested by calculations are included.