Pattern logic building

i have trying to implement logic of complex patterns for a few months . but i have not been able to approach the problems correctly . can anyone suggest me how can i improve my logic building skills in pattern making questions ?