NGS involves fragmenting DNA or RNA samples into smaller pieces, attaching adapters to these fragments, and then sequencing them in parallel. The data generated are then assembled and analyzed using bioinformatics tools to identify genetic mutations, gene expression profiles, and other genomic alterations relevant to cancer.