Pattern flexibility is achieved through various advanced techniques. Lithography methods, such as photolithography, electron beam lithography, and nanoimprint lithography, are commonly used to create precise nanoscale patterns. In addition to lithography, self-assembly techniques allow for the spontaneous organization of molecules into desired patterns. Researchers also use scanning probe microscopy to physically manipulate and create patterns at the atomic level.