The computer itself is a discrete structure,so it can not only achieve discrete processing of data,but also handle the discretized data relationships.From this perspective,when designing computer algorithms,it is necessary to pay attention to the discreteness of the computer structure,establish effective data models,and do a good job of discretization based on quantitative mathematical models.This paper mainly studies the design of computer algorithms and the discreteness of data structures,hoping to provide reference for relevant personnel.