EN
Electronic structure of substitutional group-IV impurities C, Si, and Ge in hexagonal GaN and AlN were studied by quantum molecular dynamics. C_{N} is a very shallow acceptor, and thus a promising p-type dopant. Both Si and Ge are excellent donors in GaN. However, in AlGaN alloys the DX configurations are stable for a sufficiently high Al content, which quenches the doping efficiency. Electronic structure of nearest-neighbor X_{cation}-X_{N} pairs is also discussed.