Combinatorial problems in studies of genetic variations: haplotyping and transcript analysis