algorithm constructii