8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i'm doing banker's algorithm..
got some error there but i cant fix it..
please help!!
#!/bin/bash
echo "enter no.of resources: "
read n1
echo -n "enter the max no .of resources for each type: "
for(( i=0; i <$n1; i++ ))
do
read ${t}
done
echo -n "enter no .of... (1 Reply)
Discussion started by: syah
1 Replies
2. Homework & Coursework Questions
Give a counter example such that the following heuristic algorithm, for the 2-tape problem, doesn't always produce the best solution:
Algorithm:
Sort {Xi} in descending order.
Place files in tapes one at a time.
For a file being considered, assign the file to the smaller tape.
Thanks in... (1 Reply)
Discussion started by: sureshcisco
1 Replies
3. Programming
Can you help to adjust the void dijkstra(int s) function to find a path from source to every node so that the minimum cost on that path is maximum.
Ex:
From 1 to 2 we have 1 - 3 - 4 - 2 , costs(2+3+4+5)
From 1 to 2 we have 1 - 5 - 6 - 2 , costs(3+3+4+5)
I need the algorithm to choose path 1... (4 Replies)
Discussion started by: ali2011
4 Replies
4. Programming
Hi guys , in my study book from which I re-learn C is task to generate all possible characters combination from numbers entered by the user. I know this algorithm must use combinatorics to calculate all permutations. Problem is how to implement algortihm.
// This program reads the four numbers... (0 Replies)
Discussion started by: solaris_user
0 Replies
5. IP Networking
Hi
I have an Apache Web server running on a Solaris 8 box that sits on a SSN.
I have one desktop that connects to the SSN from the internal network and is recognised directly without using the gateway, all other desktops, laptops from inside the internal network connect to the SSN using the... (0 Replies)
Discussion started by: Bobby76
0 Replies
6. UNIX for Advanced & Expert Users
A) produce an algorithm in pseudocode and a flowchart that gets n from the user and calculate their sum.
B) Write an algorithm in pseudocode and a flowchart that gets number x from he user and calculates x5 ( X to the power of %5). Calculate by using multiplication.
... (1 Reply)
Discussion started by: delsega
1 Replies
7. What is on Your Mind?
I'm currently under my parents' e2 visa, but I might get my ssn during this summer. on my visa, it has my legal name from my country...but since my name was too hard for native speakers to pronounce, I went by an English name for long....I used that name for all my middle and high school year, so I... (2 Replies)
Discussion started by: shanekol
2 Replies
8. Shell Programming and Scripting
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
21444 tomusr 213M 61M sleep 29 10 1:20:46 0.1% java/43
21249 root 93M 44M sleep 29 10 1:07:19 0.2% java/56
is there anyway i can use a command to get the total of the SIZE? 306M (Derive from... (5 Replies)
Discussion started by: filthymonk
5 Replies
CVTBATCH(8) System Manager's Manual CVTBATCH(8)
NAME
cvtbatch - convert Usenet batch file to INN format
SYNOPSIS
cvtbatch [ -w items ]
DESCRIPTION
Cvtbatch reads standard input as a series of lines, converts each line, and writes it to standard output. It is used to convert simple
batchfiles that contain just the article name to INN batchfiles that contain additional information about each article.
Each line is taken as the pathname to a Usenet article. If it is not an absolute pathname, it is taken relative to the spool directory,
/var/spool/news. (Only the first word of each line is parsed; anything following whitespace is ignored.)
OPTIONS
-w The ``-w'' flag specifies how each output line should be written. The items for this flag should be chosen from the ``W'' flag
items as specified in newsfeeds(5). They may be chosen from the following set:
b Size of article in bytes
f full pathname of article
m article message-id
n relative pathname of article
If the input file consists of a series of Message-ID's, then use grephistory(1) with the ``-s'' flag piped into cvtbatch.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.4, dated 1996/10/29.
SEE ALSO
grephistory(1) newsfeeds(5).
CVTBATCH(8)