Coder Social home page Coder Social logo

nsysu.intervalseq's Introduction

aliases

The Most and Longest Increasing Interval Subsequence Problem

This repository is the implement of the most increasing interval subsequence (MIIS) problem and the longest increasing interval subsequence (LIIS) problem.

Build

Usage

The input data is inserted by stdin.

./build/bin/IntervalSeq < ./test/simple/simple_1.txt

The test data should composed as bellow. Each line is an interval, and the starting value must be the firts one.

42 50
20 27
77 81
59 68
28 36
90 96
20 45
19 45
6 9
50 55
14 35
55 60

Arguments

  • MIIS with comparison by full interval
    • Default. Don't need any argument.
./build/bin/IntervalSeq
  • MIIS with comparison by a subinterval
    • -s / -sub, and followed by and integer which represent the constant constraint $c$.
./build/bin/IntervalSeq -s 3
  • LIIS with comparison by full interval
./build/bin/IntervalSeq -l
  • LIIS with comparison by a subinterval
./build/bin/IntervalSeq -l -s

Data

Random

Generate randomized data by the random.lua. There should be four arguments. The First one is the input sequence length. The second one is the minimal starting value. The third one is the maximal ending value. The forth and fifth one represent the minimal and the maximal length, respectively.

lua ./test/random/random.lua 25 10 25 5 15

Real-World

The stock price data is collected from 臺灣證卷交易所. We find the daily highest and lowest stock prices to form our interval sequence.

Below is a figure about the result of MIIS with comparison by full interval.

nsysu.intervalseq's People

Contributors

aikidouser avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.