- Big O notation describes how an algorithm's execution time
- grows as input size increases. For example, Linear Search has
- O(n) complexity because it may need to check every element in
- the list.
-
- O(log n) grows much slower than O(n). Binary Search uses O(log
- n) because it repeatedly halves the search space, making it
- significantly faster for large datasets.
-
);
}
diff --git a/features/landing/ai-demo.tsx b/features/landing/ai-demo.tsx
index 498bcb9..71c46dc 100644
--- a/features/landing/ai-demo.tsx
+++ b/features/landing/ai-demo.tsx
@@ -1,124 +1,238 @@
"use client";
-import { motion } from "framer-motion";
+import { useState } from "react";
+import { motion, Variants } from "framer-motion";
import { BrainCircuit, BookOpen, Sparkles } from "lucide-react";
import ChatMockup from "@/components/ai/chat-mockup";
-export default function AIDemo() {
- return (
-
- {/* Background Glows - No grid pattern */}
-
-
-
-
+const aiFeatures = [
+ {
+ title: "Topic-Based Learning",
+ description:
+ "Open any syllabus topic and instantly generate detailed explanations, examples, revision notes, and key concepts.",
+ icon: BookOpen,
+ color: "bg-[#3B82F6]",
+ shadow: "shadow-blue-500/20",
+ chatData: {
+ topic: "Module 2: Deadlocks",
+ messages: [
+ {
+ type: "user" as const,
+ text: "Show me the most important questions for Deadlocks from RGPV previous years.",
+ },
+ {
+ type: "ai" as const,
+ text: "I've scanned the syllabus. Here are the most frequently asked questions on Deadlocks, sorted by weightage. I also generated a quick revision PDF for you:",
+ uiComponent: "notes" as const,
+ },
+ ],
+ pyqs: [
+ "Explain the 4 Coffman conditions for deadlock. (10M)",
+ "What is Bankers Algorithm? Explain with example. (8M)",
+ "Differentiate between Deadlock Prevention and Avoidance. (6M)",
+ ],
+ },
+ },
+ {
+ title: "Interactive AI Tutor",
+ description:
+ "Ask follow-up questions and receive personalized answers based on the topic you're studying.",
+ icon: BrainCircuit,
+ color: "bg-[#8B5CF6]",
+ shadow: "shadow-purple-500/20",
+ chatData: {
+ topic: "Database Normalization",
+ messages: [
+ {
+ type: "user" as const,
+ text: "I don't understand the difference between 2NF and 3NF. Explain it simply.",
+ },
+ {
+ type: "ai" as const,
+ text: "Think of 2NF as 'the whole key' and 3NF as 'nothing but the key'.",
+ },
+ {
+ type: "user" as const,
+ text: "Can you give me an example with a student database?",
+ },
+ {
+ type: "ai" as const,
+ text: "Sure! If an Employee table has 'Department_ID' and 'Department_Name'. Department_Name depends on Department_ID, not the Employee_ID. You should split them like this:",
+ uiComponent: "tutor_code" as const,
+ },
+ ],
+ },
+ },
+ {
+ title: "Exam Focused Answers",
+ description:
+ "AI-generated responses are optimized for engineering exam preparation and structured learning.",
+ icon: Sparkles,
+ color: "bg-[#10B981]",
+ shadow: "shadow-emerald-500/20",
+ chatData: {
+ topic: "Computer Networks",
+ messages: [
+ {
+ type: "user" as const,
+ text: "Generate a 10-mark answer structure for 'OSI Reference Model'.",
+ },
+ {
+ type: "ai" as const,
+ text: "Here is the optimal structure to score full marks in your exams:",
+ uiComponent: "exam_structure" as const,
+ },
+ ],
+ pyqs: ["Explain the functions of all 7 layers of the OSI model. (10M)"],
+ },
+ },
+];
-
+ Loved By Thousands Of
+
+
+ Engineering Students
+
-
+
Hyper Learning is designed to simplify engineering education through
- AI-powered learning, syllabus mapping, and smarter exam preparation.
+ AI-powered learning and smarter exam preparation.