The density-based definition, computer science question help

Please answer the question in this document.