Notes, summaries, assignments, exams, and problems for Computers

Sort by
Subject
Level

Singly Linked List Data Structure in C: Full Implementation

Classified in Computers

Written on in English with a size of 9.45 KB

Singly Linked List Data Structure in C: Full Implementation

This document provides a comprehensive implementation of a singly linked list in C, demonstrating fundamental operations such as appending nodes, inserting nodes at specific positions, deleting nodes, calculating list length, and displaying list contents. Understanding linked lists is crucial for mastering dynamic data structures in C programming.

Understanding the Node Structure

A singly linked list is composed of individual elements called nodes. Each node contains two primary parts: the data it holds and a link (or pointer) to the next node in the sequence. The root pointer always points to the first node of the list, or is NULL if the list is empty.


#include <stdio.h>
#include
... Continue reading "Singly Linked List Data Structure in C: Full Implementation" »

Key Concepts in Information Systems and Technology

Classified in Computers

Written on in English with a size of 5.24 KB

Expert systems

have four major components. Which of the following is not one of the four?

  • Interference motor

Major categories of E-commerce

include all of the following except which one?

  • Business to department (B2D)

Computing environment

that is always present and is capable perceive the surroundings and offer recommendations based on individual need and requirement is known as:

  • Contextual computing

AI application

includes Bots, Virtual agents, and Intelligent virtual agents. Which of the following best describes this AI technology?

  • Intelligent agents

Application used in all the functions of a business

which supports decision making throughout the organization is known as___

  • Enterprise system

Four phases of the decision-making process

in a typical organization... Continue reading "Key Concepts in Information Systems and Technology" »

Collaborative Study Guide: CSE 12 Complexity, Generics, Data Structures & Algorithms

Classified in Computers

Written on in English with a size of 64.95 KB

COLLABORATIVE SOLUTIONS FOR PRACTICE PROBLEMS

CSE 12

God help us all

ALL MIGHTY CS LORDS GIVE US MERCY


  • Use the google comment system to ask questions or leave comments on any answer

  • How to use comments: https://support.Google.Com/docs/answer/65129?Hl=en

  • When you write an answer, add the question along with the answer

  • Add an explanation for your answer

  • Always doubt everyone else’s answers until you confirm for yourself they’re correct

____________________________________________________________________________

Complexity Problems



  1. Consider a small array a and large array b. Accessing the first element of a takes more/less/the same amount of time as accessing the first element of b.


A. The same amount of time

B. Less time  

C. More time

Should be the same... Continue reading "Collaborative Study Guide: CSE 12 Complexity, Generics, Data Structures & Algorithms" »

Comprehensive Guide to HTML Headings: Types, Usage, and SEO Optimization

Classified in Computers

Written on in English with a size of 2.25 KB

Types of HTML Headings

HTML headings are classified into six levels, ranging from <h1> to <h6>, with <h1> representing the most important heading and <h6> the least important.

Usage of HTML Headings

Headings play a crucial role in structuring your web content and enhancing its readability. They help:

  • Organize content: Headings divide your content into logical sections, making it easier for users to navigate and understand.
  • Establish hierarchy: The different heading levels create a visual hierarchy, indicating the relative importance of each section.
  • Improve accessibility: Headings provide context and structure for screen readers, assisting users with disabilities.

SEO Optimization of HTML Headings

Headings are significant for... Continue reading "Comprehensive Guide to HTML Headings: Types, Usage, and SEO Optimization" »

SQL Database Schema & Query Solutions

Classified in Computers

Written on in English with a size of 4.85 KB

Forum Database Schema: Creation Scripts

Database Creation

CREATE DATABASE ForumDeDiscussoes;

USE ForumDeDiscussoes;

Usuario Table

CREATE TABLE Usuario (
  idUsuario INT AUTO_INCREMENT,
  nome VARCHAR(70),
  email VARCHAR(45),
  PRIMARY KEY (idUsuario)
);

Forum Table

CREATE TABLE Forum (
  idForum INT AUTO_INCREMENT,
  nome VARCHAR(45),
  PRIMARY KEY (idForum)
);

Topico Table

CREATE TABLE Topico (
  idTopico INT AUTO_INCREMENT,
  nome VARCHAR(45),
  idForum INT,
  PRIMARY KEY (idTopico),
  CONSTRAINT fkForum FOREIGN KEY (idForum) REFERENCES Forum (idForum)
);

Comentario Table

CREATE TABLE Comentario (
  idComentario INT AUTO_INCREMENT,
  Descricao VARCHAR(255),
  idTopico INT,
  PRIMARY KEY (idComentario),
  CONSTRAINT fkTopico FOREIGN KEY (idTopico)
... Continue reading "SQL Database Schema & Query Solutions" »

Understanding Computer Architecture: System Bus, Address Bus, Data Bus, and Control Bus

Classified in Computers

Written on in English with a size of 38.71 KB

System Bus (Data, Address, and Control Bus)

This network of wires or electronic pathways is called the 'Bus'. A system bus is a single computer bus that connects the major components of a computer system.

It combines the functions of:

  • Data Bus: Carries information.
  • Address Bus: Determines where information should be sent.
  • Control Bus: Determines the operation to be performed.

This technique was developed to reduce costs and improve modularity.

Z

Figure: System Bus

Address Bus

The address bus is a group of wires or lines used to transfer the addresses of memory or I/O devices.

  • It is unidirectional.
  • The width of the address bus determines the maximum addressing capacity, representing the largest address within memory that the bus can handle.
  • Addresses are
... Continue reading "Understanding Computer Architecture: System Bus, Address Bus, Data Bus, and Control Bus" »

Characteristics and Requirements of Programming Languages

Classified in Computers

Written on in English with a size of 2.75 KB

A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine, to express algorithms precisely. Thousands of different programming languages have been created, mainly in the computer field, with many more being created every year. Most programming languages describe computation in an imperative style, i.e., as a sequence of commands.

Requirements and Objectives

A computer programming language is a language used to write computer programs, which involve a computer performing some kind of computation or algorithm and possibly control external devices such as printers, disk drives,... Continue reading "Characteristics and Requirements of Programming Languages" »

Tic-Tac-Toe Game Functions in C

Classified in Computers

Written on in English with a size of 7.68 KB

#include <stdio.h>


// Name: Riya Patel, UWin No: 105159179
void printMenu()

{

printf("\n\nPress 'p' to print the tic-tac-toe board\n");


printf("Press 'c' to create a tic-tac-toe with some x and o cells\n");


printf("Press 't' to test if a tic-tac-toe board is valid or invalid\n");


printf("Press 'w' to predict winning cell for player x or o\n");


printf("Press 'e' to exit\n");


printf("Enter your choice: ");

}

void InitializeBoard(int m, int n, char board[][n])

{

int c = 1;
for (int i = 0; i < m; i++)

{

for (int j = 0; j < n; j++)

{

board[i][j] = c + '0';
c++;

} } }

void PrintBoard(int m, int n, char board[][n])

{

for (int i = 0; i < n; ++i)

{

for (int j = 0; j < n; j++)

{

j != 2 ? printf("%c |", board[i][j]) : printf("%c", board[i][j]
... Continue reading "Tic-Tac-Toe Game Functions in C" »

Fundamentals of Data Structures and Algorithms

Classified in Computers

Written on in English with a size of 2.05 KB

Data Structure (Syllabus)

Semester & Branch: 3rd sem CSE/IT Teachers Assessment : 10 Marks
Theory: 4 Periods per Week Class Test : 20 Marks
Total Periods: 60 Periods per Semester End Semester Exam : 70 Marks
Examination: 3 Hours TOTAL MARKS : 100 Marks

Objective :

The effectiveness of implementation of any application in computer mainly depends on the that how effectively its information can be stored in the computer. For this purpose various -structures are used. This paper will expose the students to various fundamentals structures arrays, stacks, queues, trees etc. It will also expose the students to some fundamental, I/0 manipulation techniques like sorting, searching etc

1.0 INTRODUCTION: 04

  • 1.1 Explain Data, Information, data types
  • 1.2 Define
... Continue reading "Fundamentals of Data Structures and Algorithms" »

IPv6 Packet Structure: Base Header and Extension Headers

Classified in Computers

Written on in English with a size of 2.54 KB

IPv6 Packet Format: Base Header

Each IPv6 packet consists of a mandatory base header followed by the payload. The payload is made up of two parts: optional extension headers and the upper-layer data. The base header is 40 bytes long, whereas the extension headers and the data from the upper layer can contain up to 65,535 bytes of information.

The base header has 8 fields:

  • Version: A 4-bit field that defines the version of IP, such as IPv4 or IPv6. For IPv6, the value of this field is 6.
  • Priority: A 4-bit field that defines the priority of the packet, which is important in connection with traffic congestion.
  • Flow Label: A 24-bit field designed for providing special handling for a particular flow of data.
  • Payload Length: A 2-byte field used to define
... Continue reading "IPv6 Packet Structure: Base Header and Extension Headers" »