algorithm aetg