what is top down in writing an algorithm ? and what are differences of it and stepwise ?

Top down means starting at the highest reasonable level and then digging into details. It's an overall structure based approach rather than bottom up, which is more of a progressively evolving functionality approach (starting with the details and working up).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.