Sha256: 83003459951db2c2423db92de689afa0287c9b8fea6f4025b44c5511cb79cc73

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

module Zadt
  class ADT
    def self.help
      puts "Thank you for using Zagorski Advanced Data Types!"
      puts "This package contains the following Data Types:"
      puts "Array-Like Data Types"
      puts "-Stack, a LIFO array with functions push and pop"
      puts "-Queue, a FIFO array with functions enqueue and dequeue"
      puts "-StackQueue, a Queue that is Stack-based (no real difference)"
      puts "-MinMaxStack, a Stack that can return Min and Max in constant time"
      puts "-MinMaxStackQueue, a Queue that can return Min and Max in constant time"
      puts "Graph Data Types"
      puts "-Graph, consisting of Vertices connected by Edges"
      puts "--Vertex, a 'spot' on the graph"
      puts "--Edge, connects two vertices"
      puts "-FaceGraph, a sub-class of Graph which includes Faces"
      puts "--Face, a space surrounded by Edges.  Consists of Vertices and the Edges connecting them"
      puts ""
      puts "Each data type also has a help function.  Type Zadt::Stack::help for a list of Stack functions, and so on."
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zadt-0.1.4 lib/zadt/AbstractDataTypes/ADT.rb
zadt-0.1.3 lib/zadt/AbstractDataTypes/ADT.rb
zadt-0.1.2 lib/zadt/AbstractDataTypes/ADT.rb