CQ algorithms