Discrete Structures

行业场景

by zohaibcodez

提供离散数学全套工具,涵盖 logic、algorithms、number theory 与 cryptography 等主题。

什么是 Discrete Structures

提供离散数学全套工具,涵盖 logic、algorithms、number theory 与 cryptography 等主题。

README

Discrete Structures AI Learning Platform

An interactive web-based educational platform for learning discrete structures through visualizations, AI-powered assistance, and hands-on tools.

Features

  • Algorithm Visualizer: Step-by-step animations of sorting and searching algorithms
  • Cryptography Playground: Explore classical and modern encryption techniques
  • Logic Calculator: Boolean algebra, truth tables, and expression simplification
  • Number Theory Explorer: Prime numbers, GCD/LCM, modular arithmetic tools
  • AI Chatbot Assistant: Get help with discrete structures concepts via AI

Tech Stack

  • Backend: Python 3.11+, FastAPI, OpenAI Agents SDK, MCP Protocol
  • Frontend: React 18, TypeScript, Vite, TailwindCSS, Framer Motion
  • Package Management: uv (Python), npm (JavaScript)

Quick Start

Prerequisites

  • Python 3.11 or higher
  • Node.js 18 or higher
  • uv package manager (pip install uv)
  • OpenAI API key

Backend Setup

bash
cd backend
uv sync
copy .env.example .env
# Edit .env and add your OPENAI_API_KEY
uv run uvicorn src.main:app --reload

Backend runs on http://localhost:8000

Frontend Setup

bash
cd frontend
npm install
copy .env.example .env
npm run dev

Frontend runs on http://localhost:5173

Project Structure

code
discrete-structures-ai-platform/
├── backend/          # FastAPI backend + MCP server
│   ├── src/
│   │   ├── api/      # API endpoints
│   │   ├── agents/   # OpenAI agents
│   │   ├── mcp/      # MCP tools
│   │   ├── models/   # Pydantic models
│   │   └── services/ # Business logic
│   └── tests/        # Backend tests
├── frontend/         # React frontend
│   ├── src/
│   │   ├── components/  # React components
│   │   ├── pages/       # Page components
│   │   ├── services/    # API clients
│   │   ├── hooks/       # Custom hooks
│   │   └── types/       # TypeScript types
│   └── public/       # Static assets
└── specs/            # Project specifications

Development

This project follows a phased implementation approach:

  • Phase 1: Project Setup ✅
  • Phase 2: Foundational Infrastructure ✅
  • Phase 3: Landing Page ✅
  • Phase 4+: Feature implementation (in progress)

See specs/001-ds-ai-platform/tasks.md for detailed task breakdown.

License

Educational use only.

常见问题

Discrete Structures 是什么?

提供离散数学全套工具,涵盖 logic、algorithms、number theory 与 cryptography 等主题。

相关 Skills

面试体系设计

by alirezarezvani

Universal
热门

按岗位、级别和团队设计面试流程,生成能力矩阵、题库与评分标准,分析面试官偏差并校准招聘门槛,适合搭建或优化企业招聘体系。

团队招人没章法时,用它快速搭建岗位化面试流程、题库与评分标准,还能兼顾校准面试偏差,招聘更稳更准。

行业场景
未扫描9.0k

抽认卡

by BytesAgain

热门

Spaced repetition study tool with deck management. Use when you need flashcard.

行业场景
未扫描3.7k

教程文档

by anderskev

热门

Tutorial patterns for documentation - learning-oriented guides that teach through guided doing

行业场景
未扫描3.7k

相关 MCP Server

by boosted-chat

热门

Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.

行业场景
137

Search company disclosures and financial statements from the Korean market. Retrieve stock profiles, market classifications, and historical trading data across major exchanges. Accelerate equity research with accurate, date-specific insights for Korean securities.

做韩国股研时,用它能一站查公司披露、财报和历史行情,按日期精确追溯关键信息,比手动翻交易所高效太多。

行业场景
103

检索韩国市场公司的披露文件与财务报表,并获取股票概况等关键信息。

想研究韩股公司时,它能一站式拉取披露、财报和股票概况,省去跨站查资料的麻烦,对跨境投研尤其省时。

行业场景
103

评论