理解stepwise refinement in Programming

本文对比了低级别设计( LLD )与高级别设计( HLD )的区别,探讨了步进细化技术在软件开发中的应用,包括伪代码在分解复杂任务中的作用。通过实例阐述了如何从高处开始,逐步细化到可执行的步骤,并强调了模块化和伪代码在设计过程中的关键作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • Low-level design vs. High-level design

    Low level design(LLD) is a component-level design process that follows a step-by-step refinement process. The LLD phase is the stage where the actual software components are designed.

    High level design(HLD) is the general system design means it refers to the overall system design. It describes the overall description/architecture of the application.

  • Stepwise Refinement

    Stepwise refinement is a basic technique for low-level design.

    Invented by Niklaus Wirth in 1971, it may be the oldest systematic approach to software design still in use.

    Stepwise Refinement is the process of breaking down a programming problem into a series of steps.

    Its a top-down design mode.

    在这里插入图片描述

  • Pseudo-Code

    Fundamental to the process of stepwise refinement is pseudocode, a low-level design tool or notation hat allows us the flexibility to write about algorithms that we don’t entirely understand yet.

    Pseudo-Code is also known as “structured English”

  • Much more clearly description

    Stepwise refinement: design a problem solution by :

    1. Starting the solution at a high level
    2. Refining steps of the solution into simpler steps
    3. Repeating step 2, until steps are simple enough to execute

    Decompose based on function of each step

    Makes heavy use of pseudocode

  • Modularity and stepwise refinement

    The idea underlying modularity is, in short, the decomposition of a complicated task into a group of small independent subtasks.

  • References

  1. Difference between High Level Design and Low level Design
  2. Learnlearn: stepwise refinement
  3. Steven Zeil
  4. Radford.edu
  5. Openu.ac.il
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值