• Kĩ thuật lập trình - Big - O analysis of algorithmsKĩ thuật lập trình - Big - O analysis of algorithms

    Choose a “pivot” element. Partition the array so that all the values to the left of the pivot are smaller than or equal to it, and all the elements to the right of the pivot are greater than or equal to it. Sort (recursively) the left-of-the-pivot and right-of-the-pivot pieces.

    ppt32 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 630 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 19: Service - Oriented architectureKĩ thuật lập trình - Chapter 19: Service - Oriented architecture

    Current web services standards have been criticized as ‘heavyweight’ standards that are over-general and inefficient. REST (REpresentational State Transfer) is an architectural style based on transferring representations of resources from a server to a client. This style underlies the web as a whole and is simpler than SOAP/WSDL for implementin...

    pptx53 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 653 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 18: Program correctnessKĩ thuật lập trình - Chapter 18: Program correctness

    Axiomatic semantics is a language for specifying what a program is supposed to do. Based on the idea of an assertion: An assertion is a predicate that describes the state of a program at a point in its execution. A postcondition is an assertion that states the program’s result. A precondition is an assertion that states what must be true before...

    ppt19 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 715 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 18: Distributed software engineeringKĩ thuật lập trình - Chapter 18: Distributed software engineering

    In a distributed system, it is inevitable that failures will occur, so the system has to be designed to be resilient to these failures. “You know that you have a distributed system when the crash of a system that you’ve never heard of stops you getting any work done.” Distributed systems should include mechanisms for discovering if a component...

    pptx57 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 763 | Lượt tải: 0

  • Kĩ thuật lập trình - Chương 18: Mouse, keyboard, sounds, and imagesKĩ thuật lập trình - Chương 18: Mouse, keyboard, sounds, and images

    Name the five methods of the MouseListener interface. Can a class implement MouseMotionListener but not MouseListener? What are the units and the origin for the coordinates returned by the MouseEvent’s getX and getY methods? How many methods does the KeyListener interface specify?

    ppt22 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 595 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 17: Concurrent programmingKĩ thuật lập trình - Chapter 17: Concurrent programming

    A race condition occurs when the resulting value of a variable depends on the execution order of two or more threads. Ex: c = c + 1 Machine level: load c add 1 store c If c initially 0: With 2 threads, can get 1 or 2 With n threads, can get 1, 2, ., n

    ppt41 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 591 | Lượt tải: 0

  • Kĩ thuật lập trình - Chương 17: Gui components and eventsKĩ thuật lập trình - Chương 17: Gui components and events

    Places components in a line as long as they fit, then starts the next line. Uses “best judgement” in spacing components. Centers by default. Lets each component assume its natural (preferred) size. Often used for placing buttons on panels.

    ppt32 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 602 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 17: Component - Based software engineeringKĩ thuật lập trình - Chapter 17: Component - Based software engineering

    Apart from the benefits of reuse, CBSE is based on sound software engineering design principles: Components are independent so do not interfere with each other; Component implementations are hidden; Communication is through well-defined interfaces; Component platforms are shared and reduce development costs.

    pptx55 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 713 | Lượt tải: 0

  • Kĩ thuật lập trình - Chapter 16: Event - Driven programmingKĩ thuật lập trình - Chapter 16: Event - Driven programming

    GUI applications: Model-View-Controller design Embedded applications: cell phones car engines airplanes

    ppt29 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 599 | Lượt tải: 0

  • Kĩ thuật lập trình - Chương 16: GraphicsKĩ thuật lập trình - Chương 16: Graphics

    A graphics adapter in your computer is a raster device. VRAM (video RAM) contains the information about the colors of all pixels. The screen displays the contents of VRAM. To draw a shape, you need to set the exactly right set of pixels to the required colors. The number of pixels in the raster vertically and horizontally is called the device r...

    ppt21 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 871 | Lượt tải: 0